osbuild / osbuild.github.io

Sources of the osbuild.org website
https://osbuild.org
Apache License 2.0
1 stars 15 forks source link

Redirect old urls to the new locations #18

Open bcl opened 7 months ago

bcl commented 7 months ago

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-redirects

and I've tried plain redirects and using the createRedirects function with no success. It seems to want to create a directory named for the from path and drop an index.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.

ochosi commented 7 months ago

@ondrejbudai suggested Netlify as a solution for server side redirects

bcl commented 7 months ago

That looks like some kind of external service? I don't think that's a solution, more like extra complexity :)

ochosi commented 7 months ago

@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?

bcl commented 7 months ago

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.