<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Force www. in your URL using .htaccess</title> <atom:link href="http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/feed" rel="self" type="application/rss+xml" /><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess</link> <description>Nottingham UK PHP, Magento, Wordpress freelance developer</description> <lastBuildDate>Sun, 19 Feb 2012 11:57:19 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: igi</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-69011</link> <dc:creator>igi</dc:creator> <pubDate>Wed, 27 Jul 2011 13:34:51 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-69011</guid> <description>@kyle renfrow
Thanks for your suggestion!!! IT ROCKS DUDE!!!</description> <content:encoded><![CDATA[<p>@kyle renfrow<br
/> Thanks for your suggestion!!! IT ROCKS DUDE!!!</p> ]]></content:encoded> </item> <item><title>By: Andy</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-68996</link> <dc:creator>Andy</dc:creator> <pubDate>Thu, 30 Jun 2011 07:53:13 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-68996</guid> <description>Many thanks for this - I&#039;ve used it successfully on my site.</description> <content:encoded><![CDATA[<p>Many thanks for this &#8211; I&#8217;ve used it successfully on my site.</p> ]]></content:encoded> </item> <item><title>By: Toyin</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-68963</link> <dc:creator>Toyin</dc:creator> <pubDate>Thu, 07 Apr 2011 13:39:16 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-68963</guid> <description>HI this is my current .htaccess file. The solution above doesnt seem to work for me. the site doesn&#039;t load up when I have made the changes. what am I missing? thanks
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress</description> <content:encoded><![CDATA[<p>HI this is my current .htaccess file. The solution above doesnt seem to work for me. the site doesn&#8217;t load up when I have made the changes. what am I missing? thanks</p><p># BEGIN WordPress</p><p>RewriteEngine On<br
/> RewriteBase /<br
/> RewriteCond %{REQUEST_FILENAME} !-f<br
/> RewriteCond %{REQUEST_FILENAME} !-d<br
/> RewriteRule . /index.php [L]</p><p># END WordPress</p> ]]></content:encoded> </item> <item><title>By: [HELP] What is the rewrite rules for domain.com/forums to www.domain.com/forums?</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-68651</link> <dc:creator>[HELP] What is the rewrite rules for domain.com/forums to www.domain.com/forums?</dc:creator> <pubDate>Wed, 16 Jun 2010 21:40:07 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-68651</guid> <description>[...] a plugin; Force www. (without .htaccess) - vBulletin.org Forum  or here&#039;s how using htaccess; Force www. in your URL using .htaccess : Blog : Jamie Huskisson   __________________   Mikey / vBulletinSetup Staff  Validate your vBSetup Account. Click Here.  [...]</description> <content:encoded><![CDATA[<p>[...] a plugin; Force www. (without .htaccess) &#8211; vBulletin.org Forum  or here&#39;s how using htaccess; Force www. in your URL using .htaccess : Blog : Jamie Huskisson   __________________   Mikey / vBulletinSetup Staff  Validate your vBSetup Account. Click Here.  [...]</p> ]]></content:encoded> </item> <item><title>By: Ernie</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-67161</link> <dc:creator>Ernie</dc:creator> <pubDate>Fri, 05 Mar 2010 09:45:05 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-67161</guid> <description>Thanks for this, I&#039;ll get it up on my site now :)</description> <content:encoded><![CDATA[<p>Thanks for this, I&#8217;ll get it up on my site now :)</p> ]]></content:encoded> </item> <item><title>By: Jim</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-67044</link> <dc:creator>Jim</dc:creator> <pubDate>Sun, 29 Nov 2009 06:03:59 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-67044</guid> <description>Thanks Jamie and Maciej for the simple documentation. I&#039;ve referred to it several times myself.</description> <content:encoded><![CDATA[<p>Thanks Jamie and Maciej for the simple documentation. I&#8217;ve referred to it several times myself.</p> ]]></content:encoded> </item> <item><title>By: Camaron</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-59926</link> <dc:creator>Camaron</dc:creator> <pubDate>Fri, 03 Apr 2009 14:34:40 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-59926</guid> <description>#kyle renfrow
thank you, the other redirect chops the path before the script name off (in my case at least)</description> <content:encoded><![CDATA[<p>#kyle renfrow</p><p>thank you, the other redirect chops the path before the script name off (in my case at least)</p> ]]></content:encoded> </item> <item><title>By: kyle renfrow</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-31776</link> <dc:creator>kyle renfrow</dc:creator> <pubDate>Thu, 24 Apr 2008 19:21:38 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-31776</guid> <description>this solution provided is only for http, make sure you cover https as well..heres the code I&#039;ve been using for quite some time:
&lt;blockquote&gt;RewriteCond %{HTTP_HOST} ^overfrown\.com
RewriteCond %{HTTPS} =on
RewriteRule .* https://www.%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteCond %{HTTP_HOST} ^overfrown\.com
RewriteCond %{HTTPS} !=on
RewriteRule .* http://www.%{SERVER_NAME}%{REQUEST_URI} [R,L]&lt;/blockquote&gt; </description> <content:encoded><![CDATA[<p>this solution provided is only for http, make sure you cover https as well..heres the code I&#8217;ve been using for quite some time:</p><blockquote><p>RewriteCond %{HTTP_HOST} ^overfrown\.com<br
/> RewriteCond %{HTTPS} =on<br
/> RewriteRule .* <a
href="https://www.%" rel="nofollow">https://www.%</a>{SERVER_NAME}%{REQUEST_URI} [R,L]<br
/> RewriteCond %{HTTP_HOST} ^overfrown\.com<br
/> RewriteCond %{HTTPS} !=on<br
/> RewriteRule .* <a
href="http://www.%" rel="nofollow">http://www.%</a>{SERVER_NAME}%{REQUEST_URI} [R,L]</p></blockquote> ]]></content:encoded> </item> <item><title>By: Daniel</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-10657</link> <dc:creator>Daniel</dc:creator> <pubDate>Sun, 25 Mar 2007 19:05:41 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-10657</guid> <description>I&#039;ve tried both, but the solution has caused other problems.  I&#039;ve installed bbpress, but the users that log into Skinplistic WITHOUT the www are not recognized by users that log into bbpress WITH the www.  I used the code above to force access via www, however; I noticed this counted multiple hit against my server (I use slimstat).  Plus, I think it may be upsetting adsense and the other robots I prey for everyday. ;)  I don&#039;t know what to do.</description> <content:encoded><![CDATA[<p>I&#8217;ve tried both, but the solution has caused other problems.  I&#8217;ve installed bbpress, but the users that log into Skinplistic WITHOUT the www are not recognized by users that log into bbpress WITH the www.  I used the code above to force access via www, however; I noticed this counted multiple hit against my server (I use slimstat).  Plus, I think it may be upsetting adsense and the other robots I prey for everyday. ;)  I don&#8217;t know what to do.</p> ]]></content:encoded> </item> <item><title>By: Jamie Huskisson</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-10413</link> <dc:creator>Jamie Huskisson</dc:creator> <pubDate>Mon, 19 Mar 2007 18:34:28 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-10413</guid> <description>So instead of adding the www. your code removes it Maciej?
Thanks for contributing that - I&#039;m sure people here will be looking for both alternatives :)</description> <content:encoded><![CDATA[<p>So instead of adding the www. your code removes it Maciej?</p><p>Thanks for contributing that &#8211; I&#8217;m sure people here will be looking for both alternatives :)</p> ]]></content:encoded> </item> <item><title>By: Maciej PawÃƒâ€¦Ã¢â‚¬Å¡owski</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-10389</link> <dc:creator>Maciej PawÃƒâ€¦Ã¢â‚¬Å¡owski</dc:creator> <pubDate>Mon, 19 Mar 2007 01:55:44 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-10389</guid> <description>But it&#039;s quite bad idea ... Instead try:
&lt;code&gt;RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$  [R=301,L]&lt;/code&gt;
no-www.org</description> <content:encoded><![CDATA[<p>But it&#8217;s quite bad idea &#8230; Instead try:<br
/> <code>RewriteEngine On<br
/> RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]<br
/> RewriteRule ^(.*)$  [R=301,L]</code></p><p>no-www.org</p> ]]></content:encoded> </item> <item><title>By: Jamie Huskisson</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-10331</link> <dc:creator>Jamie Huskisson</dc:creator> <pubDate>Thu, 15 Mar 2007 20:19:59 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-10331</guid> <description>Think I&#039;ve seen it for so long it just feels un-natural without it Ryan ;)</description> <content:encoded><![CDATA[<p>Think I&#8217;ve seen it for so long it just feels un-natural without it Ryan ;)</p> ]]></content:encoded> </item> <item><title>By: Ryan Christensen</title><link>http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess/comment-page-1#comment-10330</link> <dc:creator>Ryan Christensen</dc:creator> <pubDate>Thu, 15 Mar 2007 20:17:22 +0000</pubDate> <guid
isPermaLink="false">http://www.jhuskisson.com/code-tidbits/force-www-in-your-url-using-htaccess#comment-10330</guid> <description>I tend to prefer the reverse (something about the URL length, I think.) Either way, great tip!
Is there a reason you prefer having the &quot;www&quot; over the alternative?</description> <content:encoded><![CDATA[<p>I tend to prefer the reverse (something about the URL length, I think.) Either way, great tip!</p><p>Is there a reason you prefer having the &#8220;www&#8221; over the alternative?</p> ]]></content:encoded> </item> </channel> </rss>
