I am migrating a non-Hugo site to Hugo, and moved everything to an subdirectory inside my content
, which I called archive
(or perhaps old
).
I have created an alias for every old page so that the original URL redirects to /archive/
+ the original URL.
I see a link rel="canonical"
and a noindex
get generated, apart from the actual meta http-equiv
redirect, as stated in the documentation
I see Google has some documentation on canonical URLs. But I don’t think it says what would happen to existing URLs which would get un-canonicalized. What would happen to them in the search results?
- Would they just disappear?
- Would they get replaced with their canonical variants?
- Something else?