Why does not GoHugo generate alias?

Hi folks! I’m using the latest version of GoHugo. Since I migrated my blog from wordpress to GoHugo, some URLs have changed and then I thought it was nice to use alias for old articles. In that way, I think I’ll keep some SEO points by redirecting the reader to the correct URL without asking to change backlinks.

For each article I use the following snippet:

alias = ["/posts/new-cool-page", "/archive/old-cool"]

However when GoHugo builds my blog, it does not “generate”/“create” alias. This is very weird, and I can not understand why it does happen.

However

No:

alias = ["foo"]

Yes:

aliases = ["foo"]

See https://gohugo.io/content-management/urls/#example-aliases

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.