What is the Canonical URL issue?

What is the Canonical URL issue? And how to solve?

Hello friends, if you have a website and you want it to come up on the top of the search, then you have to take full care of the canonical URL as well, because if your post is indexed by more than one URL in Google, then in the ranking Heavy damage can occur. So let's know what the Canonical URL is and how to correct the Canonical Issue.

What is Canonical URL

Say Canonical URL or Canonical Link is the same thing, which is used in HTML. Canonical URL issue it is used as SEO, where if we use the Canonical Tag if the same page in our website is opened with a single URL, then we tell in that which URL is the most, so that duplicate content is not found in the search Appear and gain in the ranking.

RELATED ARTICLE: Best Free Online Software for Computer

What is the Canonical issue?

A canonical issue arises when 301 redirects do not occur properly. This means that your website can be accessed by the search engine from many different URLs. This means that the search engine can potentially index your site under different URLs, which means that it will look like a duplicate content site.

For example, if you have a website: http://www.example.com then the index page can be accessed with all the following URLs:

  • http://www.example.com

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

  • http://example.com

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

How to solve the Canonical issue?

Today I will share with you 3 ways to solve this issue. Which will solve your problem 100%.

The best and most effective way to resolve a Canonical issue is a permanent 301 redirect. This can be implemented from the detailed information given below. Canonical URL issue depending on which server your website is hosted on, the methods that you use to implement redirect will depend.

Apart from this, it is also worth logging into Google webmaster tools and setting two profiles for your domain; world Wide Web. Another non www with a prefix. Then go to the site “configuration> setting> preferred domain” and choose which domain you want to use.

1 How to implement 301 redirect with .htaccess file?

If you have hosted your website on any of the following types of servers, then you will be able to use a .htaccess file:

  • Linux

  • Apache

  • Zeus

  • Sun Java

These are the most common hosting servers and also the easiest to implement a permanent 301 redirects. Just copy the code into your existing .htaccess file if you can open a blank notepad document and save it as .htcess.

syntext code

Options + FollowSymLinks

RewriteEngine onRewriteCond% {HTTP_HOST} ^ example.com [NC]

RewriteRule ^ (.) $ Http://www.example.com/$1 [L, R = 301]

RewriteCond% {REQUEST_URI} ^ (.) // (.) $

RewriteRule. 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 replace example.com domain name with your domain name. Depending on your site, you have a .php index page or it cannot be called index, either check it on your website and change it accordingly.

Once the code is edited and copied to the .htaccess file, save it and upload it to the root of the domain (the same location as the index page). These two pieces of code will redirect anyone who accesses the site, including www. prefix is included. And /index.html from the root domain.

Redirecting 301 using 2 Windows servers?

If you host your website on a Windows server, you will need administrative access to the hosting server and 301 to redirect to IIS.

  1. Go to "All program> administrative tool> internet information service"

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

  3. Click on the "Home Directory" tab

  4. Select the Radial button "A URL to redirect"

  5. Then enter the URL you want to redirect (e.g. http://www.example.com)

  6. Click "Ok"

3 Using canonical URL using Yoast plugin?

Yoast SEO (free or premium) adds a canonical URL to your WordPress install for all contents selected by the search engine to index. It works automatically in 99.9% of cases. You do not have to make any more changes for this.

If you want to change them, there is a separate box for this in the Yoast plugin at the bottom when writing the post, where you can enter the canonical URL.

Some steps are given below. You can understand them easily by following them.

1: Log in to your WordPress website.

(When you are logged in, you will be in your Dashboard.)

2: Edit post, page or taxonomy.

(On the left side, you will see a menu that will allow you to navigate to your posts, pages and other contents. Navigate to the individual item to edit the content settings.)

3: For post and page, scroll to Yoast SEO meta box. Under the 'SEO' tab, click to expand the 'Advanced' section.

4: Full canonical URL, which may include http / s and www or non-www., Enter it in the 'Canonical URL' field.

5: Update the post, page or taxonomy.

Note: It will take some time to update in the search console to remove the warning of the Canonical Issue, but your canonical issue will have been solved.

RELATED ARTICLE:Best Tips To Give Presentation


So friends, hope you have now come to society, what is the canonical URL and what is its importance in SEO, and if there was an error in your Search Console then how to fix it.

You must have used the Search Console, but you do not know the settings required by the search console, which is important. His information is this.

How can you tell information by commenting on it, and if you have any other support related to blogging, then you can also ask for it by commenting.

Post a Comment