A Complete Guide To Fix Canonical Issue On Website

Canonical Issue

A canonical issue arises when 301 redirects are not appropriate in the place. It means that search engines can access your website through many different URLs. This also means that search engines can index your website under various URLs. It looks like a website of duplicate content. If you have a small business website, but you are facing canonical issues on your website, so you should hire small business SEO services from a leading SEO company.

For instance, if you have the website http://www.example.com, then the indexing page can easily accessible from all of the following URLs: –

http://www.example.com
http://www.example.com/index.html
http://example.com
http://example.com/index.html

How to Fix Canonical Issue on Your Business Website?

The greatest and effective way to fix the canonical issue is with a permanent 301 redirect. It can improve in different ways as explained below. Depending on what server your site has hosted on will decide the technique which you use to implement a redirect. Moreover, it may be more valuable for set-up two profiles for your domain like one with the www. prefix and one without and log into Google webmaster tools. After that, go to the site “configuration > settings> Preferred domain” and select which domain you would prefer Google to use.

Simple Ways to Implement a 301 redirect with a .htaccess file-

If your website hosted on following server types, you will be able to use a .htaccess file-

Linux

Apache

Zeus

Sun Java

These are common hosting servers and also the simplest to implement a permanent 301 redirect. Easily copy the code into your existing .htaccess file if you may one or open a blank notepad file and save it as.htaccess.

Options +FollowSymLinks
Now, rewrite Engine on
Then rewrite Cond %{HTTP_HOST} ^ example.com [NC]
after that rewrite Rule ^(.*)$ http://www.example .com/$1 [L,R=301]

Rewrite Cond %{REQUEST_URI} ^(.*)//(.*)$
Rewrite Rule. http://www.example.com%1/%2 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ http://www.example.com/%1 [R=301,L]\

You have to change the example.com domain name to your domain name and you may require to change the text underlined in the green. Depending upon on your website, you have a. php index page, either way, check it on your site and change accordingly. When the code edited and copied into .htaccess file and save it and upload it to the origin of the domain. These two parts of the code will redirect anybody who accesses the website to a URL that comprises the www.prefix and from the index.html to the origin domain.

Learn the process of setting up a 301 redirect using windows server-

When you host your site on a windows server, you should have administrative access to the hosting server and will require to set-up the 301 redirects through IIS.

Need to Go to “All Programs>Administrative Tools>Internet Information Services”

Navigate to the domain and make right click on it, then choose “Properties” option.

Click on the “Home Directory” button.

Choose the radial option “A redirection to a URL”

Then, you should type the URL you want to redirect to (e.g. http://www.example.com)

Click on the “OK” button.

Thus, it will redirect the domain. Apart from all these things, if you want to ask any questions, firstrankseoservices is the best option for you to provide complete guidance for any complex difficulties.