Canonical Problem
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: .

