Autocanonicalize, does it work? Should it prevent duplicite urls?

10 months ago

mcmatak
Member | 499
+
0
-

Am I wrong that this code

https://github.com/…resenter.php#L685

should prevent to exist duplicite url adressess?

So for example it should redirect order of url parameters yes?

So this

https://www.onlinesekac.cz/…ke-bundy/c-7?…

should be redirected to this

https://www.onlinesekac.cz/…ke-bundy/c-7?…

is it right?

why this doesnt work?

As i understand these two urls is not same for google, better say it is same but google try to index both of them and mark them as duplicates.

10 months ago

jiri.pudil
Member | 893
+
0
-

Apparently, the order of query parameters is ignored when comparing the URLs. You can use <link rel="canonical"> to point search engines to the canonical URL.

10 months ago

mcmatak
Member | 499
+
0
-

thanks, so this

<link rel=“canonical” href=“{plink this}”>

in layout could be the solution, yes? bcs it always reconstruct url again