Open bcl opened 7 months ago
@ondrejbudai suggested Netlify as a solution for server side redirects
That looks like some kind of external service? I don't think that's a solution, more like extra complexity :)
@bcl We have now enabled this plugin because we renamed a directory. I think at least a redirect for the osbuild.org/guides
path could be useful (and since it's a directory, doable?).
Which other pages would you redirect?
It won't redirect anything but the directory request, so I don't think it's very useful since all the things I see in google results are html pages and all of those will still end up being 404s.
All search results are now broken with the new Docusaurus based site :/
Docusaurus seems to have rudimentary support for redirects, but after trying various things I have only been able to get it to redirect a directory. It won't redirect
.html
pages. The plugin is here: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-client-redirectsand I've tried plain redirects and using the
createRedirects
function with no success. It seems to want to create a directory named for thefrom
path and drop anindex.html
file inside of that instead of just writing it to the file.Redirecting just the directories isn't very helpful since the old pages were all named with
.html
extensions.Their recommended solution is to use server side redirects, but AFAIK that isn't available with github pages.