I want to forward from one of my pages to another and I can’t find a solution for that.
I have these two sites: content/post/oldpost.md and content/newpost.md
I was thinking an alias would be the solution, so I tried this in the frontmatter of my new post:
—
aliases:
- /oldpost/
—
but it don’t works, where is the mistake?
http meta refresh is basically what hugo does as well when you create an alias. When aliases are specified, Hugo creates a directory to match the alias entry. Inside the directory, Hugo creates an .html file specifying the canonical URL for the page and the new redirect target.
In your front matter example, if you go to /oldpost, you should end up at /newpost which seems correct.