-
Notifications
You must be signed in to change notification settings - Fork 67
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
Google search for documentation gives 404 error. #362
Comments
Yeah. I thought maybe it would redirect automatically (like it does for the repo itself) but no dice. Any idea how? |
This is a way to do it, but it seems really icky to me. It also seems like the best way (a 301 redirect) is not possible. I suppose this is a disadvantage of pointing to a domain name you do not control. |
Whelp, here's a fix. It's real icky, but it should work. As a test, https://lilithhafner.github.io/PythonCall.jl https://lilithhafner.github.io One downside is that this breaks the documentation of all other packages using your github.io domain It won't be great for SEO, but tbh it's our responsibility to make good documentation and it's search engines' responsibility to make it discoverable. To make this actually work, simply copy the contents of https://github.com/LilithHafner/lilithhafner.github.io to a new repository https://github.com/cjdoris/cjdoris.github.io and change "lilithhafner" to "cjdoris" on this line |
Thanks for the suggestions, but I've just implemented a slightly less icky version by creating a bunch of pages which redirect to the corresponding page in the new location. They contain a canonical link, which search engines should notice and start to direct traffic there instead. For example: https://github.com/cjdoris/cjdoris.github.io/blob/master/PythonCall.jl/stable/pythoncall/index.html |
You loose heading specifiers on the redirect, but not a big loss; I think you made the right choice. |
This is probably due to the repo transfer. That URL should really be redirected.
The text was updated successfully, but these errors were encountered: