<?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/"
xmlns:media="http://search.yahoo.com/mrss/"
> <channel><title>Comments on: How to remove www from your URL with mod_rewrite</title> <atom:link href="http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/feed/" rel="self" type="application/rss+xml" /><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-remove-www-from-your-url-with-mod_rewrite</link> <description>Tweaking Websites</description> <lastBuildDate>Tue, 16 Mar 2010 08:53:48 +0000</lastBuildDate> <generator>http://wordpress.org/?v=</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: siuck</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-75213</link> <dc:creator>siuck</dc:creator> <pubDate>Tue, 24 Nov 2009 10:17:41 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-75213</guid> <description>How i can cange the code for a multistore view (with mutiple domains)?</description> <content:encoded><![CDATA[<p>How i can cange the code for a multistore view (with mutiple domains)?</p> ]]></content:encoded> </item> <item><title>By: Jack001</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-73641</link> <dc:creator>Jack001</dc:creator> <pubDate>Mon, 21 Sep 2009 21:37:44 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-73641</guid> <description>hello, thank you for your help,
i try to do the job with url, and exclude index.php on my htaccess with your code:
RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.mywebsite.com/ [R=301,L]the problem is that i have an internal error 500...</description> <content:encoded><![CDATA[<p>hello, thank you for your help,<br
/> i try to do the job with url, and exclude index.php on my htaccess with your code:<br
/> RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/<br
/> RewriteRule ^index\.php$ <a
href="http://www.mywebsite.com/" rel="nofollow">http://www.mywebsite.com/</a> [R=301,L]</p><p>the problem is that i have an internal error 500...</p> ]]></content:encoded> </item> <item><title>By: kalpesh</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-73596</link> <dc:creator>kalpesh</dc:creator> <pubDate>Sun, 20 Sep 2009 06:20:24 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-73596</guid> <description>how can i covert url like this
http://www.site.com/City/Index.php?City=Newyorkto
http://Newyork.site.com/City/Index.php</description> <content:encoded><![CDATA[<p>how can i covert url like this<br
/> <a
href="http://www.site.com/City/Index.php?City=Newyork" rel="nofollow">http://www.site.com/City/Index.php?City=Newyork</a></p><p>to<br
/> <a
href="http://Newyork.site.com/City/Index.php" rel="nofollow">http://Newyork.site.com/City/Index.php</a></p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-73370</link> <dc:creator>John</dc:creator> <pubDate>Sun, 13 Sep 2009 16:06:27 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-73370</guid> <description>So I spent all morning trying to figure out how to do this from the Apache manual, and was on the point of giving up when I googled &quot;mod_rewrite remove www.&quot;, got your post, and it was working in minutes!  Thanks.</description> <content:encoded><![CDATA[<p>So I spent all morning trying to figure out how to do this from the Apache manual, and was on the point of giving up when I googled "mod_rewrite remove www.", got your post, and it was working in minutes!  Thanks.</p> ]]></content:encoded> </item> <item><title>By: 爱喝白开水的空间博客</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-72021</link> <dc:creator>爱喝白开水的空间博客</dc:creator> <pubDate>Fri, 24 Jul 2009 00:36:37 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-72021</guid> <description>[...] .htaccess with mod_rewrite建立一个301重定向是一个好主意。除此之外，解决了 WWW vs non-WWW [...]</description> <content:encoded><![CDATA[<p>[...] .htaccess with mod_rewrite建立一个301重定向是一个好主意。除此之外，解决了 WWW vs non-WWW [...]</p> ]]></content:encoded> </item> <item><title>By: Andries</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-70260</link> <dc:creator>Andries</dc:creator> <pubDate>Mon, 15 Jun 2009 18:39:44 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-70260</guid> <description>Thanks for the code, Joost. Very useful and works like a charm</description> <content:encoded><![CDATA[<p>Thanks for the code, Joost. Very useful and works like a charm</p> ]]></content:encoded> </item> <item><title>By: Magento Stores Ecommerce Search Engine Optimization, Magento store, magento shop SEO &#124; Magento - Shopping Cart</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-68559</link> <dc:creator>Magento Stores Ecommerce Search Engine Optimization, Magento store, magento shop SEO &#124; Magento - Shopping Cart</dc:creator> <pubDate>Sun, 19 Apr 2009 12:50:15 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-68559</guid> <description>[...] to www but set only the preferred one. Therefore it is a good idea to create a 301 redirect through .htaccess with mod_rewrite. When editing the .htaccess file you can add the following code to redirect index.php to [...]</description> <content:encoded><![CDATA[<p>[...] to www but set only the preferred one. Therefore it is a good idea to create a 301 redirect through .htaccess with mod_rewrite. When editing the .htaccess file you can add the following code to redirect index.php to [...]</p> ]]></content:encoded> </item> <item><title>By: jdevalk (Joost de Valk)</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-66863</link> <dc:creator>jdevalk (Joost de Valk)</dc:creator> <pubDate>Thu, 05 Mar 2009 20:37:55 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-66863</guid> <description>&lt;a rel=&quot;nofollow&quot; href=&quot;http://twitter.com/defries&quot;&gt;@defries&lt;/a&gt; http://tinyurl.com/9dho89 helpt dat?</description> <content:encoded><![CDATA[<p><a
rel="nofollow" href="http://twitter.com/defries">@defries</a> <a
href="http://tinyurl.com/9dho89" rel="nofollow">http://tinyurl.com/9dho89</a> helpt dat?</p> ]]></content:encoded> </item> <item><title>By: vinod</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-36761</link> <dc:creator>vinod</dc:creator> <pubDate>Fri, 19 Sep 2008 10:05:30 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-36761</guid> <description>Sorry for my earlier post...but below is my actual problem.
my site works on https://example.com/index.php but https://www.example.com/index.php gives me certificate error.
i want to redirect anything from https://www.example.com to https://example.com
Can anyone plz help me.</description> <content:encoded><![CDATA[<p>Sorry for my earlier post...but below is my actual problem.<br
/> my site works on <a
href="https://example.com/index.php" rel="nofollow">https://example.com/index.php</a> but <a
href="https://www.example.com/index.php" rel="nofollow">https://www.example.com/index.php</a> gives me certificate error.<br
/> i want to redirect anything from <a
href="https://www.example.com" rel="nofollow">https://www.example.com</a> to <a
href="https://example.com" rel="nofollow">https://example.com</a><br
/> Can anyone plz help me.</p> ]]></content:encoded> </item> <item><title>By: Fred</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-36734</link> <dc:creator>Fred</dc:creator> <pubDate>Wed, 17 Sep 2008 12:12:31 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-36734</guid> <description>How can I resolve my home page URL to always display http://www.example.com/ even when someone clicks on http://www.example.com/index.html or if someone types http://example.com/ also it should resolve to http://www.example.com/Thanks in advance!</description> <content:encoded><![CDATA[<p>How can I resolve my home page URL to always display <a
href="http://www.example.com/" rel="nofollow">http://www.example.com/</a> even when someone clicks on <a
href="http://www.example.com/index.html" rel="nofollow">http://www.example.com/index.html</a> or if someone types <a
href="http://example.com/" rel="nofollow">http://example.com/</a> also it should resolve to <a
href="http://www.example.com/" rel="nofollow">http://www.example.com/</a></p><p>Thanks in advance!</p> ]]></content:encoded> </item> <item><title>By: vini</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-35731</link> <dc:creator>vini</dc:creator> <pubDate>Fri, 01 Aug 2008 17:29:13 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-35731</guid> <description>hi
i want to rewrite www.someting.com to something.com,but it hav to be done automatically for all sites am going to host in my dynamically configured apache...
so can u pls giv a soltion to dis problm....
thanks in advance</description> <content:encoded><![CDATA[<p>hi<br
/> i want to rewrite <a
href="http://www.someting.com" rel="nofollow">http://www.someting.com</a> to something.com,but it hav to be done automatically for all sites am going to host in my dynamically configured apache...<br
/> so can u pls giv a soltion to dis problm....<br
/> thanks in advance</p> ]]></content:encoded> </item> <item><title>By: SoamJena</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-33284</link> <dc:creator>SoamJena</dc:creator> <pubDate>Thu, 10 Apr 2008 13:56:31 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-33284</guid> <description>hello bro,i have got my website at www.soamjena.com and i want to remove the ending SLASH / which automatically comes when someone opens my site in their browser. Kindly help me and get me a good solution.
Im waiting for your kind reply.</description> <content:encoded><![CDATA[<p>hello bro,i have got my website at <a
href="http://www.soamjena.com" rel="nofollow">http://www.soamjena.com</a> and i want to remove the ending SLASH / which automatically comes when someone opens my site in their browser. Kindly help me and get me a good solution.<br
/> Im waiting for your kind reply.</p> ]]></content:encoded> </item> <item><title>By: itti</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-31904</link> <dc:creator>itti</dc:creator> <pubDate>Fri, 28 Mar 2008 23:47:13 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-31904</guid> <description>sorry this the answer for B question
---
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.net/city/$ [NC]
RewriteRule ^(.*)$ http://example.net/city/$1 [R=301,L]</description> <content:encoded><![CDATA[<p>sorry this the answer for B question<br
/> ---<br
/> RewriteEngine On<br
/> RewriteCond %{HTTP_HOST} ^www.example.net/city/$ [NC]<br
/> RewriteRule ^(.*)$ <a
href="http://example.net/city/$1" rel="nofollow">http://example.net/city/$1</a> [R=301,L]</p> ]]></content:encoded> </item> <item><title>By: itti</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-31903</link> <dc:creator>itti</dc:creator> <pubDate>Fri, 28 Mar 2008 23:44:04 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-31903</guid> <description>Thanks for the great code, however, it doesn&#039;t filter down to subdirectories.As an example, when I place the code in my .htaccess file in my public_html folder, it works great for the domain:http://www.domain.com --&gt; domain.comHowever:http://www.domain.com/city/ --&gt; http://www.domain.com/city(It has no effect unless I&#039;m in the root folder.Any help?---------------
the answer isRewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com/city/$[NC]
RewriteRule ^(.*)$ http://domain.com/city/$1 [R=301,L]</description> <content:encoded><![CDATA[<p>Thanks for the great code, however, it doesn't filter down to subdirectories.</p><p>As an example, when I place the code in my .htaccess file in my public_html folder, it works great for the domain:</p><p><a
href="http://www.domain.com" rel="nofollow">http://www.domain.com</a> --&gt; domain.com</p><p>However:</p><p><a
href="http://www.domain.com/city/" rel="nofollow">http://www.domain.com/city/</a> --&gt; <a
href="http://www.domain.com/city" rel="nofollow">http://www.domain.com/city</a></p><p>(It has no effect unless I'm in the root folder.</p><p>Any help?</p><p>---------------<br
/> the answer is</p><p>RewriteEngine On<br
/> RewriteCond %{HTTP_HOST} ^www.domain.com/city/$[NC]<br
/> RewriteRule ^(.*)$ <a
href="http://domain.com/city/$1" rel="nofollow">http://domain.com/city/$1</a> [R=301,L]</p> ]]></content:encoded> </item> <item><title>By: B</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-29644</link> <dc:creator>B</dc:creator> <pubDate>Wed, 20 Feb 2008 23:21:29 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-29644</guid> <description>Thanks for the great code, however, it doesn&#039;t filter down to subdirectories.As an example, when I place the code in my .htaccess file in my public_html folder, it works great for the domain:www.domain.com --&gt; domain.comHowever:www.domain.com/city/  --&gt; www.domain.com/city(It has no effect unless I&#039;m in the root folder.Any help?Thanks</description> <content:encoded><![CDATA[<p>Thanks for the great code, however, it doesn't filter down to subdirectories.</p><p>As an example, when I place the code in my .htaccess file in my public_html folder, it works great for the domain:</p><p><a
href="http://www.domain.com" rel="nofollow">http://www.domain.com</a> --&gt; domain.com</p><p>However:</p><p><a
href="http://www.domain.com/city/" rel="nofollow">http://www.domain.com/city/</a> --&gt; <a
href="http://www.domain.com/city" rel="nofollow">http://www.domain.com/city</a></p><p>(It has no effect unless I'm in the root folder.</p><p>Any help?</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: IDIOMS development &#187; Blog Archive &#187; Front end research links</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-29188</link> <dc:creator>IDIOMS development &#187; Blog Archive &#187; Front end research links</dc:creator> <pubDate>Sat, 16 Feb 2008 23:00:26 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-29188</guid> <description>[...] For SEO: http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/ [...]</description> <content:encoded><![CDATA[<p>[...] For SEO: <a
href="http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/" rel="nofollow">http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/</a> [...]</p> ]]></content:encoded> </item> <item><title>By: Joost de Valk</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-28046</link> <dc:creator>Joost de Valk</dc:creator> <pubDate>Sun, 13 Jan 2008 20:05:19 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-28046</guid> <description>It doesn&#039;t matter which one you choose, as long as you choose either one.</description> <content:encoded><![CDATA[<p>It doesn't matter which one you choose, as long as you choose either one.</p> ]]></content:encoded> </item> <item><title>By: GMC TopKick</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-28045</link> <dc:creator>GMC TopKick</dc:creator> <pubDate>Sun, 13 Jan 2008 20:03:51 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-28045</guid> <description>Thanks. So is it better for Google to have it or not have it? Why do people remove it?</description> <content:encoded><![CDATA[<p>Thanks. So is it better for Google to have it or not have it? Why do people remove it?</p> ]]></content:encoded> </item> <item><title>By: Joost de Valk</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-28044</link> <dc:creator>Joost de Valk</dc:creator> <pubDate>Sun, 13 Jan 2008 19:58:48 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-28044</guid> <description>They go into your blog&#039;s .htaccess</description> <content:encoded><![CDATA[<p>They go into your blog's .htaccess</p> ]]></content:encoded> </item> <item><title>By: GMC TopKick</title><link>http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-28043</link> <dc:creator>GMC TopKick</dc:creator> <pubDate>Sun, 13 Jan 2008 19:56:55 +0000</pubDate> <guid
isPermaLink="false">http://www.joostdevalk.nl/blog/how-to-remove-www-from-your-url-with-mod_rewrite/#comment-28043</guid> <description>I dont even know where the code goes. Dont even know how I did it. Wow you answer fast! Thanks!
Mike</description> <content:encoded><![CDATA[<p>I dont even know where the code goes. Dont even know how I did it. Wow you answer fast! Thanks!<br
/> Mike</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 1/6 queries in 0.007 seconds using apc
Content Delivery Network via netdna.yoast.com

Served from: yoast.com @ 2010-03-16 15:25:39 -->