[SOLVED] Existing links to website will be broken under new hugo structure, fix?

So I’ve spent time recreating my existing website using hugo and everything looks right and seems to be working properly. The only problem now is existing links to my site will all now be broken.

For example, a link would be “website.com/product.html” whereas under the new layout, the product is in the directory “/content/product/index.html” and will be accessed through “website.com/product”.

Is there an easy fix for stuff like this? I currently have 30 sub-folders inside of my content directory and I’ll need all of the existing links to my site to continue working if I migrate to Hugo.

See Ugly URLs

1 Like

Excellent!! Thanks for that!