A lot of 404 on posts after migration from the old theme #1089
-
Hey folks. After migration from another theme the URLs have been changed from https://www.domain.com/some-post.html to https://www.domain.com/p/some-post.html. In my case I have following URL https://www.wojcieh.net/how-to-backup-vcenter-server-appliance-6-5/ which was working and it is gives 404 because it has been moved to https://www.wojcieh.net**/p/**how-to-backup-vcenter-server-appliance-6-5/. How can I remove /p/ from the URL? TiA. BR, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The URL structure is defined in hugo.yaml (or .toml). Have you removed the contents of the config when changing theme?
|
Beta Was this translation helpful? Give feedback.
-
Thanks. This was it |
Beta Was this translation helpful? Give feedback.
The URL structure is defined in hugo.yaml (or .toml). Have you removed the contents of the config when changing theme?
It should be a simple fix by adding these line to
hugo.yaml
: