<?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: I&#8217;M USING A SCRIPT IN MY .HTACCESS FILE WHICH POINTS ALL LINKS FROM MY &#8220;NON-WWW&#8221; SITE TO MY WWW SITE.</title>
	<atom:link href="http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site/feed/" rel="self" type="application/rss+xml" />
	<link>http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site/</link>
	<description></description>
	<lastBuildDate>Fri, 10 Feb 2012 08:53:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Civic SEO</title>
		<link>http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site/comment-page-1/#comment-756</link>
		<dc:creator>Civic SEO</dc:creator>
		<pubDate>Fri, 30 Jul 2010 09:53:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-756</guid>
		<description>RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain.co.uk$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.co.uk/$1 [R=301,L] 

That above is the only code you need to redirect non-www to www in your .htaccess file. Yes you can change *.com to *.co.uk to get the same results, I made the code already valid for that. Change &quot;yourdomain&quot; to your domains name.

Yes, this will prevent duplicate content issues with search engines regarding two URLs having the same content. All non-www requests will be 301 redirected to their www counterpart. Results will take time, you might not even yeild none but a more proper internal link structure.</description>
		<content:encoded><![CDATA[<p>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^yourdomain.co.uk$ [NC]<br />
RewriteRule ^(.*)$ <a target="_blank" rel="nofollow" href="http://searchenginescript.biz/goto/http://www.yourdomain.co.uk/$1"  rel="nofollow">http://www.yourdomain.co.uk/$1</a> [R=301,L] </p>
<p>That above is the only code you need to redirect non-www to www in your .htaccess file. Yes you can change *.com to *.co.uk to get the same results, I made the code already valid for that. Change &#8220;yourdomain&#8221; to your domains name.</p>
<p>Yes, this will prevent duplicate content issues with search engines regarding two URLs having the same content. All non-www requests will be 301 redirected to their www counterpart. Results will take time, you might not even yeild none but a more proper internal link structure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

