Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect old urls to the new locations #18

Open
bcl opened this issue Jan 28, 2024 · 4 comments
Open

Redirect old urls to the new locations #18

bcl opened this issue Jan 28, 2024 · 4 comments

Comments

@bcl
Copy link
Contributor

bcl commented Jan 28, 2024

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
Copy link
Contributor

ochosi commented Jan 28, 2024

@ondrejbudai suggested Netlify as a solution for server side redirects

@bcl
Copy link
Contributor Author

bcl commented Jan 30, 2024

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

@ochosi
Copy link
Contributor

ochosi commented Feb 13, 2024

@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
Copy link
Contributor Author

bcl commented Feb 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants