<?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: Rewrite domain.com to www.domain.com using htaccess in Apache</title>
	<atom:link href="http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gerd Naschenweng</title>
		<link>http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/comment-page-1/#comment-53024</link>
		<dc:creator>Gerd Naschenweng</dc:creator>
		<pubDate>Wed, 04 Jan 2012 16:24:10 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-53024</guid>
		<description>Thanks for the snippet - works as intended.</description>
		<content:encoded><![CDATA[<p>Thanks for the snippet &#8211; works as intended.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hal_9000_ai</title>
		<link>http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/comment-page-1/#comment-48405</link>
		<dc:creator>Hal_9000_ai</dc:creator>
		<pubDate>Fri, 13 May 2011 17:04:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48405</guid>
		<description>Oh and, if it&#039;s good enough for FACEBOOK.COM which re-routes to www.facebook.com, THEN there is obvious reason for it. Let&#039;s see, Aaron Toponce versus $9 Billion Valued Company. Let the masses decide, what is redundant</description>
		<content:encoded><![CDATA[<p>Oh and, if it&#8217;s good enough for FACEBOOK.COM which re-routes to <a href="http://www.facebook.com" rel="nofollow">http://www.facebook.com</a>, THEN there is obvious reason for it. Let&#8217;s see, Aaron Toponce versus $9 Billion Valued Company. Let the masses decide, what is redundant</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hal_9000_ai</title>
		<link>http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/comment-page-1/#comment-48404</link>
		<dc:creator>Hal_9000_ai</dc:creator>
		<pubDate>Fri, 13 May 2011 17:01:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48404</guid>
		<description>It&#039;s not silly nor redundant if you are the one running and owning the server and the dedicated IP address running to it. The choice to force content to be served from one NameHost is a valid one, especially if you Host several domains. Anyone that has worked with servers and DNS knows that anyone can point their domain to your Dedicated IP address, and without such technology as mod_rewrite available at the domain root level, someone can essentially server your content under their domain name in a web browser. It is common practise with Domain Harvesters. Anyways, my point is that what is absurd and/or redundant to someone, usually means it the reasoning may be over their head. If we talking about apples and we&#039;re looking at an Macintosh Apple and a Granny Smith Apple, you just see Apples, I see apples and computers and my Grandma Smith. Difference is really, I OWN the apples , while you&#039;re just talkin abot it ;)</description>
		<content:encoded><![CDATA[<p>It&#8217;s not silly nor redundant if you are the one running and owning the server and the dedicated IP address running to it. The choice to force content to be served from one NameHost is a valid one, especially if you Host several domains. Anyone that has worked with servers and DNS knows that anyone can point their domain to your Dedicated IP address, and without such technology as mod_rewrite available at the domain root level, someone can essentially server your content under their domain name in a web browser. It is common practise with Domain Harvesters. Anyways, my point is that what is absurd and/or redundant to someone, usually means it the reasoning may be over their head. If we talking about apples and we&#8217;re looking at an Macintosh Apple and a Granny Smith Apple, you just see Apples, I see apples and computers and my Grandma Smith. Difference is really, I OWN the apples , while you&#8217;re just talkin abot it ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bmatthewshea</title>
		<link>http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/comment-page-1/#comment-47707</link>
		<dc:creator>bmatthewshea</dc:creator>
		<pubDate>Mon, 04 Apr 2011 00:29:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47707</guid>
		<description>Not quite there..
needs to a match true condition -&gt; &quot;!&quot;:

RewriteCond %{HTTP_HOST} !^(www.example.com)?$ [NC]

(added &#039;!&quot; and [NC])</description>
		<content:encoded><![CDATA[<p>Not quite there..<br />
needs to a match true condition -&gt; &#8220;!&#8221;:</p>
<p>RewriteCond %{HTTP_HOST} !^(www.example.com)?$ [NC]</p>
<p>(added &#8216;!&#8221; and [NC])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g1smd</title>
		<link>http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/comment-page-1/#comment-38901</link>
		<dc:creator>g1smd</dc:creator>
		<pubDate>Mon, 03 May 2010 06:45:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-38901</guid>
		<description>If the idea is to redirect all non-canonical forms of the hostname to exactly www.example.com/ beware that your standard code does not redirect www requests with an appended port number www.example.com:80/ and does not redirect www requests with an appended period www.example.com./ either. This leaves a site open to Duplicate Content indexing if malicious links are pointed at non-canonical URLs.

The fix is very simple, a minor edit to the originally suggested code:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.example.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Additionally, the ( ) ? syntax ensures that HTTP/1.0 requests - which have a blank HOST header - do not cause an infinite redirection loop.</description>
		<content:encoded><![CDATA[<p>If the idea is to redirect all non-canonical forms of the hostname to exactly <a href="http://www.example.com/" rel="nofollow">http://www.example.com/</a> beware that your standard code does not redirect www requests with an appended port number <a href="http://www.example.com:80/" rel="nofollow">http://www.example.com:80/</a> and does not redirect www requests with an appended period <a href="http://www.example.com./" rel="nofollow">http://www.example.com./</a> either. This leaves a site open to Duplicate Content indexing if malicious links are pointed at non-canonical URLs.</p>
<p>The fix is very simple, a minor edit to the originally suggested code:</p>
<p>Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^(www.example.com)?$<br />
RewriteRule (.*) <a href="http://www.example.com/$1" rel="nofollow">http://www.example.com/$1</a> [R=301,L]</p>
<p>Additionally, the ( ) ? syntax ensures that HTTP/1.0 requests &#8211; which have a blank HOST header &#8211; do not cause an infinite redirection loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/comment-page-1/#comment-37779</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 25 Feb 2010 08:08:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-37779</guid>
		<description>YOU are just silly and redundant.</description>
		<content:encoded><![CDATA[<p>YOU are just silly and redundant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/comment-page-1/#comment-27893</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Fri, 13 Feb 2009 12:08:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-27893</guid>
		<description>Why? WWW (World Wide Web) was incorporated to force browsers to use the HTTP protocol when the Internet was new. Now all modern browsers default to HTTP by default, so what is the point of WWW? Mail servers certainly don&#039;t require you to use &#039;address@mail.yourdomain.com&#039;, so why should the web be any different?

No, sites should be redirecting the &#039;www&#039; subdomain to the TLD without &#039;www&#039;. See http://no-www.org for more info. Class B compliance should be the goal of every site owner. Forcing WWW is just silly and redundant.</description>
		<content:encoded><![CDATA[<p>Why? WWW (World Wide Web) was incorporated to force browsers to use the HTTP protocol when the Internet was new. Now all modern browsers default to HTTP by default, so what is the point of WWW? Mail servers certainly don&#8217;t require you to use &#8216;address@mail.yourdomain.com&#8217;, so why should the web be any different?</p>
<p>No, sites should be redirecting the &#8216;www&#8217; subdomain to the TLD without &#8216;www&#8217;. See <a href="http://no-www.org" rel="nofollow">http://no-www.org</a> for more info. Class B compliance should be the goal of every site owner. Forcing WWW is just silly and redundant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: escorts</title>
		<link>http://www.tech-recipes.com/rx/296/rewrite-domaincom-to-wwwdomaincom-using-htaccess-in-apache/comment-page-1/#comment-26710</link>
		<dc:creator>escorts</dc:creator>
		<pubDate>Sun, 04 Jan 2009 04:50:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-26710</guid>
		<description>Thanks i will try</description>
		<content:encoded><![CDATA[<p>Thanks i will try</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/15 queries in 0.972 seconds using memcached
Object Caching 380/385 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 11:16:37 -->
