Ad

Can A Web Page Have Itself As Canonical Url?

- 1 answer

Let's say I have the same HTML page accessible with two distinct urls:

https://aaaa.mydomain.com/page/page.html

https://bbbb.mydomain.com/page/page.html    

The first one is the "true" one, so I would want to use the canonical url.

My question: is it correct that the page https://aaaa.mydomain.com/page/page has in the code the canonical link to itself? i.e.:

<link rel="canonical" href="https://aaaa.mydomain.com/page/page.html" />
Ad

Answer

According to Yoast it's a good practice, because every string appended to URL (like ?utm-src=xyz) would be ignored.

Source

Ad
source: stackoverflow.com
Ad