Canonicalization Issues Explained - Top Ecommerce Apps | Ecommerce App Reviews
248
post-template-default,single,single-post,postid-248,single-format-standard,ajax_fade,page_not_loaded,,qode-title-hidden,qode_grid_1300,qode-theme-ver-14.0,qode-theme-bridge,disabled_footer_bottom,wpb-js-composer js-comp-ver-5.4.7,vc_responsive
Canonicalization Issues Explained

Canonicalization Issues Explained

Canonicalization issues arise when you can access the same page using a number of URLs. For example, most people would consider these the same URLs:

www.mysite.com
mysite.com/
www.mysite.com/index.html

However all three URLs can be treated as being separate pages. A search engine could return completely different pages for the three above URLs. Having canonicalisation issues can hurt your search engine rankings as any incoming link to each URL would be treated separately, potential splitting your Page Rank among three URLs

So how can I stop the canonicalization issues?

The first and easiest method is to make sure all your internal links are using the same style, if you start to use www.mysite.com, then continue using it throughout.

The second and slightly more complicated option is to tell your webserver which URL is your predominant choice.

You can then create a 301 redirect (a permanent redirect to say this page has moved permanently). This means that if someone was to type in mysite.com they would be automatically redirected to www.mysite.com.

This helps tell the search engines that this is your chosen URL.

To do this you need to create a file called .htaccess (that’s a file with no name and just an extension, seems strange but trust me!).

To create this file open a new notepad file and enter the following code:

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

All you need to do now to replace the reference’s to ‘mysite.com’ with your domain name, and save the file as .htaccess (that’s dot htaccess)

You now need to upload this to the root of your website, if you do not have FTP access to your website then contact your host and they will be able to show you how to upload the file.

Note: This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite module enabled.

No Comments

Post A Comment