Thursday, 13 July 2017

How to Remove Canonical Issue

To remove this problem redirect all urls on single url. Some methods to solve this problem are given below;

Create .htaccess File

 

Redirect WWW to non-WWW

RewriteEngine on
rewritecond %{http_host} sitesbay.com [nc]
rewriterule ^(.*)$ http://sitesbay.com/$1 [r=301,nc]
 

Redirect non-WWW to WWW

RewriteEngine on
rewritecond %{http_host} sitesbay.com [nc]
rewriterule ^(.*)$ http://www.sitesbay.com/$1 [r=301,nc]
 
.htaccess: This file is mainly used for redirect url, to create this file you can create any file and save with .htaccess file name.
 
Note: You can also redirect using cpanel. 
 
Source page - http://www.sitesbay.com/seo/seo-canonical-issue  


 

 

No comments:

Post a Comment