1

I have in my Django site's template:

<link rel="canonical" href="https://www.my-domain.example/post/1"/>

But the actual link is https://www.my-actual-domain.example/post/1

my-domain.example gets redirected (301) to my-actual-domain.example

Is it better (from a SEO POV) to have the canonical_tag as my-actual-domain.example than having my-domain.example even though the latter redirects?

1 Answer 1

3

The canonical should point to the URL with a status code 200.

Pointing the canonical to a redirect beats the purpose and makes it more likely that Google ignores it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.