Canonical Problem

March 8, 2010 at 11:55 am

What is canonical issue?

If you are a SEO Expert, it should be you know well that every site should have robots.txt, HTML sitemap and XML sitemap. These are basic elements of on-page optimization. But, do you know what is Canonical Redirect?

Lets explain …

First type without “www” yoursite.com into the browser. Does the URL redirect to the www version? If not, this is canonical issue.
Most of the Search engines understanding that http://yoursite.com and http://www.yoursite.com is not same thing. These two URLs look like two different sites that have exactly the same content, which they then penalize.
For example, most people would consider these the same URLs:
www.yoursite.com
yoursite.com/
www.yoursite.com /index.html

How To Fix It?

At first check if you already have an .htaccess file. Since that’s typically a hidden file, If you already have an .htaccess file, great, download it and edit with plain text editor like Notepad, otherwise create a new text document in a plain text editor like Notepad and at the end save it with the name .htaccess.

Keep these directives together in your .htaccess file. Replace example.com with your own domain, and index.html with your own index page (which could be whatever your homepage actually is, e.g. home.html or index.php, etc

For example:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

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

re-direct index.htm to root /
RewriteCond %{THE_REQUEST} ^.*\/index\.htm\ HTTP/
RewriteRule ^(.*)index\.htm$ /$1 [R=301,L]

re-direct index.php to root /
RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]

re-direct default.html to root /
RewriteCond %{THE_REQUEST} ^.*\/default\.html\ HTTP/
RewriteRule ^(.*)default\.html$ /$1 [R=301,L]

re-direct home.html to root /
RewriteCond %{THE_REQUEST} ^.*\/home\.html\ HTTP/
RewriteRule ^(.*)home\.html$ /$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^ yoursite.com\.com$ [NC]
RewriteRule ^(.*)$ http://www. yoursite.com/$1 [R=301,L]

Entry filed under: SEO, URL redirect. Tags: .

What Is Keyword Density? How To Calculate It? Google Docs To WordPress Blog


Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5 other followers

Search Engine Optimizer - Blog Stats

  • 9,767 Hit Counter Is Delayed By Up To 60 Seconds.

My Calendar

March 2010
M T W T F S S
« Feb   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  

Search Posts Monthly Wise

Become a Follower @ Facebook

Twitter – Recent Updates

Find Me On Google Map


Maloy Gupta has received a rating of 5 out of 5 based on 4 ratings. See more user reviews.

Prepared by

Follow

Get every new post delivered to your Inbox.