Hey everyone,
I’m migrating from self-hosted WordPress to Hugo on Google App Engine, and I currently have a small Go script to launch the generated pages from /public/ which works fine.
However, while I’m migrating my posts, I’m renaming several of the URLs, and so I’ve been adding ‘aliases’ entries to my BlackFriday headers. However, since Hugo’s internal web server isn’t what’s running on App Engine, I totally understand that the best Hugo can do is generate a meta-refresh redirect with a 0-second timeout, which search engines will generally be okay with. This redirect method, though, may not give the best SEO and may not change search engine entries to the new URL.
I’m curious if anyone wants to collaborate on a new feature for Hugo to use a flag in config.toml to generate a list of 301 redirects based on aliases, and output that to something like an .htaccess file within the /public/ folder. I could, for my own purposes, parse that list and regenerate my main.go launcher.