<?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: Adding WWW to domains, and Apache Rewrite Rules (mod_rewrite)</title>
	<atom:link href="http://jamescrisp.org/2009/11/05/adding-www-subdomain-with-apache-rewrite-rules-mod_rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamescrisp.org/2009/11/05/adding-www-subdomain-with-apache-rewrite-rules-mod_rewrite/</link>
	<description>C#, .NET, Ruby, Rails, book reviews, mind hacks, Wing Chun and the occasional personal bit.</description>
	<lastBuildDate>Fri, 18 May 2012 08:47:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Chris V</title>
		<link>http://jamescrisp.org/2009/11/05/adding-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-135210</link>
		<dc:creator>Chris V</dc:creator>
		<pubDate>Fri, 11 May 2012 12:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://jamescrisp.org/2009/11/05/adding-the-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-135210</guid>
		<description>Actually, I hit problems with other subdomains (dev., etc) - I found this works:
&lt;code&gt;
  RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
  RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
&lt;/code&gt;
from http://stackoverflow.com/questions/2621089/#answer-2720415 (though I think it wouldn&#039;t work with .co.uk!)</description>
		<content:encoded><![CDATA[<p>Actually, I hit problems with other subdomains (dev., etc) - I found this works:<br />
<code><br />
  RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$<br />
  RewriteRule ^ <a href="http://www.%" rel="nofollow">http://www.%</a>{HTTP_HOST}%{REQUEST_URI} [R=301,L]<br />
</code><br />
from <a href="http://stackoverflow.com/questions/2621089/#answer-2720415" rel="nofollow">http://stackoverflow.com/questions/2621089/#answer-2720415</a> (though I think it wouldn't work with .co.uk!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris V</title>
		<link>http://jamescrisp.org/2009/11/05/adding-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-135202</link>
		<dc:creator>Chris V</dc:creator>
		<pubDate>Fri, 11 May 2012 11:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://jamescrisp.org/2009/11/05/adding-the-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-135202</guid>
		<description>Nice way to add www prefix - but it wouldn&#039;t work for me until removed the &#039;/&#039; from ^/(.*)$ to make it ^(.*)$.

Thanks</description>
		<content:encoded><![CDATA[<p>Nice way to add www prefix - but it wouldn't work for me until removed the '/' from ^/(.*)$ to make it ^(.*)$.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://jamescrisp.org/2009/11/05/adding-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-113418</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 07 Mar 2012 22:36:53 +0000</pubDate>
		<guid isPermaLink="false">http://jamescrisp.org/2009/11/05/adding-the-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-113418</guid>
		<description>Hi,

It will not work for me, could it be because I am using .co.uk domains and not .com?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>It will not work for me, could it be because I am using .co.uk domains and not .com?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nidheesh</title>
		<link>http://jamescrisp.org/2009/11/05/adding-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-111440</link>
		<dc:creator>Nidheesh</dc:creator>
		<pubDate>Wed, 29 Feb 2012 09:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://jamescrisp.org/2009/11/05/adding-the-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-111440</guid>
		<description>Its Working</description>
		<content:encoded><![CDATA[<p>Its Working</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nidheesh</title>
		<link>http://jamescrisp.org/2009/11/05/adding-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-111438</link>
		<dc:creator>Nidheesh</dc:creator>
		<pubDate>Wed, 29 Feb 2012 09:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://jamescrisp.org/2009/11/05/adding-the-www-subdomain-with-apache-rewrite-rules-mod_rewrite/#comment-111438</guid>
		<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

