<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - SEO canonical 301 redirect]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/21268/"/>
	<updated>2009-03-09T10:47:39Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/21268/seo-canonical-301-redirect/</id>
		<entry>
			<title type="html"><![CDATA[Re: SEO canonical 301 redirect]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/125455/#p125455"/>
			<content type="html"><![CDATA[<p>Another way to safely tell the searchers what your url should be is to include this link in the header section of the web page:</p><div class="codebox"><pre><code>&lt;head&gt;
     ...
     &lt;link rel=&quot;canonical&quot; href=&quot;http://forexsb.com/&quot; /&gt;
     ...
&lt;/head&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>http://punbb.informer.com/forums/user/10178/</uri>
			</author>
			<updated>2009-03-09T10:47:39Z</updated>
			<id>http://punbb.informer.com/forums/post/125455/#p125455</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SEO canonical 301 redirect]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/125442/#p125442"/>
			<content type="html"><![CDATA[<p>Hello,</p><p>As you know some search engines can penalize your site for duplicate content.<br />The reason is that they see these URL like different pages:</p><div class="codebox"><pre><code>forexsb.com
forexsb.com/
www.forexsb.com/
www.forexsb.com
forexsb.com/index.html
www.forexsb.com/index.html</code></pre></div><p>To prevent this I found .htaccess 301 redirection script in the net. It does this job as well as it redirects the sub domains properly also. I&#039;m currently using this script on my website.</p><br /><div class="codebox"><pre><code>Options +FollowSymLinks 
RewriteEngine on 

RewriteCond %{THE_REQUEST} ^.*index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]

RewriteCond %{HTTP_HOST} !=&quot;&quot;
RewriteCond %{HTTP_HOST} !^forexsb\.com
RewriteRule (.*) http://forexsb.com/$1 [R=301,L]</code></pre></div><br /><p>This code redirects all the shown URLs to:</p><div class="codebox"><pre><code>http://forexsb.com/</code></pre></div><br /><p>Here you are how it works:</p><div class="codebox"><pre><code>URL to check : http://www.forexsb.com/index.html

URL: http://www.forexsb.com/index.html ... redirected (301)

URL: http://www.forexsb.com/ ... redirected (301)

URL: http://forexsb.com/ ... found.</code></pre></div><p>Well, I&#039;m not an Apache guru so I would like to comment this script against possible issues.</p><p>Best Regards!</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>http://punbb.informer.com/forums/user/10178/</uri>
			</author>
			<updated>2009-03-09T03:10:15Z</updated>
			<id>http://punbb.informer.com/forums/post/125442/#p125442</id>
		</entry>
</feed>
