<?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: Redirecting non-www to www with .htaccess</title>
	<atom:link href="http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/</link>
	<description>How am I supposed to know?? Ask Pipo!</description>
	<lastBuildDate>Mon, 15 Apr 2013 18:47:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Amiya</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-100693</link>
		<dc:creator>Amiya</dc:creator>
		<pubDate>Mon, 15 Apr 2013 18:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-100693</guid>
		<description><![CDATA[Thanks, After setting non-www to www, i don&#039;t know why but site
loading more faster. I like first code because it has no site
related issue i mean site url. Tanks again..]]></description>
		<content:encoded><![CDATA[<p>Thanks, After setting non-www to www, i don't know why but site<br />
loading more faster. I like first code because it has no site<br />
related issue i mean site url. Tanks again..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henley</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-99151</link>
		<dc:creator>Henley</dc:creator>
		<pubDate>Sun, 07 Apr 2013 02:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-99151</guid>
		<description><![CDATA[So I did this and it did change it to a WWW host but now it does
this: http://www.www.mysticania.x10.mx/]]></description>
		<content:encoded><![CDATA[<p>So I did this and it did change it to a WWW host but now it does<br />
this: http://www.www.mysticania.x10.mx/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep Sharma</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-91330</link>
		<dc:creator>Pradeep Sharma</dc:creator>
		<pubDate>Sat, 09 Mar 2013 06:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-91330</guid>
		<description><![CDATA[Urgent: 
why my home is redirecting to my-domain.com even after i did correction
replace this code
----------
RewriteEngine On
RewriteCond %{HTTP_HOST} !^my-domain.com$ [NC]
RewriteRule ^(.*)$ http://my-domain.com/$1 [R=301,L]
--------------
with
RewriteEngine On
RewriteCond %{HTTP_HOST} !^shoppingmart.comyr.com$ [NC]
RewriteRule ^(.*)$ http://shoppingmart.comyr.com/$1 [R=301,L]

after that, default, my-domain.com is opening....why, tell me urgently]]></description>
		<content:encoded><![CDATA[<p>Urgent:<br />
why my home is redirecting to my-domain.com even after i did correction<br />
replace this code<br />
----------<br />
RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^my-domain.com$ [NC]<br />
RewriteRule ^(.*)$ http://my-domain.com/$1 [R=301,L]<br />
--------------<br />
with<br />
RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^shoppingmart.comyr.com$ [NC]<br />
RewriteRule ^(.*)$ http://shoppingmart.comyr.com/$1 [R=301,L]</p>
<p>after that, default, my-domain.com is opening....why, tell me urgently</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ?????</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-91077</link>
		<dc:creator>?????</dc:creator>
		<pubDate>Fri, 08 Mar 2013 14:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-91077</guid>
		<description><![CDATA[can we use php redirect instead of htaccess way?]]></description>
		<content:encoded><![CDATA[<p>can we use php redirect instead of htaccess way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-89135</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Sat, 02 Mar 2013 11:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-89135</guid>
		<description><![CDATA[I have a .htaccess redirect file to convert all variations of my url to be just the one, eg, to change eg,  url/index.html, www.url.com.au, etc.

However it seems to change them all to no http or www. Now I want to install wordpress on a subdomain blog, it wont work because of the redirects. Wordpress requires a http://www.url.com.au to work.  Any idea if I can adjust the.htaccess code a little to redirect all variations to have a http://www.url.com.au

RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.url.com.au/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^url.com.au$
RewriteRule (.*) http://www.url.com.au/$1 [R=301,L]]]></description>
		<content:encoded><![CDATA[<p>I have a .htaccess redirect file to convert all variations of my url to be just the one, eg, to change eg,  url/index.html, www.url.com.au, etc.</p>
<p>However it seems to change them all to no http or www. Now I want to install wordpress on a subdomain blog, it wont work because of the redirects. WordPress requires a http://www.url.com.au to work.  Any idea if I can adjust the.htaccess code a little to redirect all variations to have a http://www.url.com.au</p>
<p>RewriteCond %{THE_REQUEST} ^.*/index.html<br />
RewriteRule ^(.*)index.html$ http://www.url.com.au/$1 [R=301,L]<br />
RewriteCond %{HTTP_HOST} ^url.com.au$<br />
RewriteRule (.*) http://www.url.com.au/$1 [R=301,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabi Radu</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-87608</link>
		<dc:creator>Gabi Radu</dc:creator>
		<pubDate>Tue, 26 Feb 2013 18:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-87608</guid>
		<description><![CDATA[Dense. I need www to non www version of all urls. Please provide to us a version for this too.. I know that it must be easy.. but i dont want to broke anything..  i&#039;m new to this.

This should be ok ?

RewriteEngine On
RewriteCond %{HTTP_HOST} http://www.%{HTTP_HOST}/
RewriteRule ^(.*)$ !^www\.$1 [R=301,L]]]></description>
		<content:encoded><![CDATA[<p>Dense. I need www to non www version of all urls. Please provide to us a version for this too.. I know that it must be easy.. but i dont want to broke anything..  i'm new to this.</p>
<p>This should be ok ?</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} http://www.%{HTTP_HOST}/<br />
RewriteRule ^(.*)$ !^www\.$1 [R=301,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-87572</link>
		<dc:creator>Jens</dc:creator>
		<pubDate>Tue, 26 Feb 2013 16:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-87572</guid>
		<description><![CDATA[Is there also another way?]]></description>
		<content:encoded><![CDATA[<p>Is there also another way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DanielS</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-85982</link>
		<dc:creator>DanielS</dc:creator>
		<pubDate>Thu, 21 Feb 2013 06:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-85982</guid>
		<description><![CDATA[Work&#039;s just as advertised, and was very well explained in the comments very early on. Thanks for this post, it&#039;s still very helpful!]]></description>
		<content:encoded><![CDATA[<p>Work's just as advertised, and was very well explained in the comments very early on. Thanks for this post, it's still very helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aussie</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-80515</link>
		<dc:creator>Aussie</dc:creator>
		<pubDate>Thu, 07 Feb 2013 05:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-80515</guid>
		<description><![CDATA[When I use this code on a Wordpress site, I put it directly above the wordpress info in htacces and it works perfectly]]></description>
		<content:encoded><![CDATA[<p>When I use this code on a WordPress site, I put it directly above the wordpress info in htacces and it works perfectly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bangkok Hotels</title>
		<link>http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-78076</link>
		<dc:creator>Bangkok Hotels</dc:creator>
		<pubDate>Sat, 02 Feb 2013 08:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/#comment-78076</guid>
		<description><![CDATA[Great thanks for the info. Great that both redirects are listed.

Also good to add if people are getting crawl errors for old pages that they have renamed and have backlinks to:

RewriteRule ^about_us.php$ &quot;http://www.yourdomain/about_us.htm&quot; [R=301,L]

Which will redirect the old &quot;about us&quot; page to the new page.]]></description>
		<content:encoded><![CDATA[<p>Great thanks for the info. Great that both redirects are listed.</p>
<p>Also good to add if people are getting crawl errors for old pages that they have renamed and have backlinks to:</p>
<p>RewriteRule ^about_us.php$ &quot;http://www.yourdomain/about_us.htm&quot; [R=301,L]</p>
<p>Which will redirect the old &quot;about us&quot; page to the new page.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
