Page 1 of 1

canonical links in

Posted: Fri Jan 15, 2021 7:02 pm
by Evilonion
Is there a way to alter the canonical links to make them correct in
Google has removed most of the website products in console.
The canonical links show as instead of

Re: canonical links in

Posted: Fri Jan 15, 2021 8:02 pm
by JNeuhoff
The canonical links show as instead of
This is correct behaviour! While there may be many flavors of the same product page because it could belong to different categories the canonical version is the one without category. That's what the link canonical is supposed to do.

Re: canonical links in

Posted: Sat Jan 16, 2021 5:01 am
by Evilonion
Only trouble is Google originally indexed the product pages along with the categories but due to canonical pointing to site without category Google dropped all the pages.

I have installed the canonical link extension that allows long links with folders... would this cause seo issues then?

Trying to get my head around why Google is removing all content from Google that is within a category due to it being duplicate content.

Re: canonical links in

Posted: Sat Jan 16, 2021 5:33 am
by mikeinterserv
That's generally something you have to think about before you make such changes concerning googles indexing.
I would not worry too much, those old google search results are now going to get a page not found unless you write as many redirects as you have links in google.
Google will just gradually drop all those pages as you discovered and will index the new just fine. It will take sometime for all those changes to filter through, some you will see in days, others months.
Google nowadays will prefer to index domain/product instead of the longer urls, although it has no problem with longer urls.
This problem occurs OFTEN when seo urls are turned on when NOT previously on the same existing site.

The best tip I can give you to keep google more happy is this.
Some sites when they come up in search will have the main url and the main 3-4 top links they may be categories whatever but they will be visible in google as main links alongside your main url. Usually theese are no more than 4-5 and 9times out of ten those main ones will come up.
You should REDIRECT THOSE main links in your htaccess file with a 301 redirect to the NEW url for that link so google sends you or whatever and your redirect goes to https://yourdomain/product.
Google will accept those 301 redirects and change those main links in a matter of days.

Heres an example redirect
Redirect 301 /category/my-product

Heres an example rewrite
RewriteRule ^category/my-product$ [L,R=301]

If your new product IS in a sub category change the path accordingly
RewriteRule ^category/my-product$ [L,R=301]

To explain the first part of those is what is INCOMING url from google
second part is where YOU wanyt it to go NOW and you are telling google this is a PERMANENT REDIRECT please index THIS LOCATION.