<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lajag &#187; 301</title>
	<atom:link href="http://www.lajag.com/tag/301/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lajag.com</link>
	<description>Biz and Internet Stuff</description>
	<lastBuildDate>Wed, 28 Dec 2011 11:02:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to redirect non-www links to www URLs in wordpress, correctly</title>
		<link>http://www.lajag.com/redirect-www-urls-wordpress/126/</link>
		<comments>http://www.lajag.com/redirect-www-urls-wordpress/126/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 03:15:44 +0000</pubDate>
		<dc:creator>Ken Wu</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[redirection]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.lajag.com/redirect-www-urls-wordpress/126/</guid>
		<description><![CDATA[I have learnt it the hard way (and very painful way), and my mistake causes the pagerank of my domain drops from 3 to 2. Why? Because I edit the .htaccess by adding these lines as follow&#8230; Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L] &#160; (where example is substituted by a [...]]]></description>
			<content:encoded><![CDATA[<p>I have learnt it the hard way (and very painful way), and my mistake causes the pagerank of my domain drops from 3 to 2.</p>
<p>Why?</p>
<p>Because I edit the .htaccess by adding these lines as follow&#8230;</p>
<blockquote><p>Options +FollowSymLinks     <br />RewriteEngine on      <br />RewriteCond %{HTTP_HOST} ^example\.com      <br />RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]</p>
</blockquote>
<p>&#160;</p>
<p>(where example is substituted by a domain name of your choice)</p>
<p>Usually this should work fine in ordinary sites.</p>
<p>BUT NOT FOR WORDPRESS.</p>
<p>With these modifications, all my non-www links redirect to HOMEPAGE, and they are considered as 404 error!</p>
<p>And with this setting in another domain of my own, all pages are perceived as duplicate content. Horrible.</p>
<p>It is even worse than doing nothing.</p>
<p>So how do I fix it?</p>
<p>Use this <a href="http://scott.yang.id.au/code/permalink-redirect/" target="_blank">Permalink Redirect</a> plugin.</p>
<p>Enable redirect to www for all non-www links under setting for the plugin. Certainly, you should enter the domain name with www in general setting. And the htaccess file should be writable.</p>
<p>I feel sorry for all those seeking for solution in my posts from search engines, because they all end up as redirection to homepages. My 404 page is set to redirect to home.</p>
<p>If you use wordpress and wish to have consistent permalink, be sure to get the plugin!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lajag.com/redirect-www-urls-wordpress/126/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.135 seconds -->

