Canonical issue is the most common problem websites are facing. Due to the canonical issue many informative sites are not performing well in search engine results page. Ranking top in search engine always depends on the quality of information a website is providing, how the site is optimized & the backlinks. Still any site is not performing well in search engine then there must be some issues like canonical, blacklisted IP etc.
What is canonical issue?? Suppose you have a site as "http://www.yoursite.com/"
But your site is also opening in browser like "http://yoursite.com/" or "http://www.yoursite.com/index.html" or "http://www.yoursite.com/index.php" or "http://www.yoursite.com/home.php" etc.
In these cases all the pages are same at user end, means the user will see the same page and same information at every URL. But search engine crawler treats these pages as different pages. So the crawler will treat it like different pages of a single site are showing the same information in different pages. Everything the title, meta tags, content etc is same on these pages. So the search engines will consider it as a case of content duplicacy and the search engine will consider your site as spam.
How to solve canonical issues: We can solve this issue by redirecting all these URLs to a single URL permanently. By uploading a .htaccess file we can easily redirect all the URLs.
1: Following is the code to redirect non www domain (http://yoursite.com/) to www domain (http://www.yoursite.com/) permanently (301):
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite\.com
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=permanent,L]
2: Following code is to redirect index.html to http://www.yoursite.com/
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]
3: Following code is to redirect index.php to http://www.yoursite.com/
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*folder/index\.php\ HTTP/
RewriteRule ^(.*)folder/index\.php$ /folder/$1 [R=301,L]
After creating the .htaccess file we just need to upload it to the root folder of the website. http://ajmalseotips.blogspot.com/
What is canonical issue?? Suppose you have a site as "http://www.yoursite.com/"
But your site is also opening in browser like "http://yoursite.com/" or "http://www.yoursite.com/index.html" or "http://www.yoursite.com/index.php" or "http://www.yoursite.com/home.php" etc.
In these cases all the pages are same at user end, means the user will see the same page and same information at every URL. But search engine crawler treats these pages as different pages. So the crawler will treat it like different pages of a single site are showing the same information in different pages. Everything the title, meta tags, content etc is same on these pages. So the search engines will consider it as a case of content duplicacy and the search engine will consider your site as spam.
How to solve canonical issues: We can solve this issue by redirecting all these URLs to a single URL permanently. By uploading a .htaccess file we can easily redirect all the URLs.
1: Following is the code to redirect non www domain (http://yoursite.com/) to www domain (http://www.yoursite.com/) permanently (301):
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite\.com
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=permanent,L]
2: Following code is to redirect index.html to http://www.yoursite.com/
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]
3: Following code is to redirect index.php to http://www.yoursite.com/
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*folder/index\.php\ HTTP/
RewriteRule ^(.*)folder/index\.php$ /folder/$1 [R=301,L]
After creating the .htaccess file we just need to upload it to the root folder of the website. http://ajmalseotips.blogspot.com/
0 Comments