-
Notifications
You must be signed in to change notification settings - Fork 13k
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
"The Rust Programming Language Has Moved" page instead of useful content appears in Google #42632
Comments
That's the same thing I see. And nothing about enums is exaclty the problem. This page is shown as the first result for "rust enum" search query, so it should be all about enums. |
I have no idea what our capacity for redirects are; this is how we've done it for years. @rust-lang/infra ? |
We've mostly done this historically with robots.txt but in general we need a lot of SEO love, it's not just this. I unfortunately know of no silver bullet here. |
I didn't think that robots.txt had anything to do with redirects. Is it possible to get a list of the URLs from the first edition of the book (e.g.
This goes beyond SEO. Every single link to the book from the entire internet is broken, except for the rare case where people explicitly included the version in the URL. A rough query shows that 400+ of the 6800 Rust questions now have broken links to the documentation. |
To be clear, each of these pages has redirects, just not automatic ones; you have to click the link. |
I don't have any experience doing anything suggested in it, but https://support.google.com/webmasters/answer/139066 might have some ideas on how to get google to prefer newer URLs. |
Being transparent, I did not understand that from the text
To me, that looks like it's going to to take me to I still think I'd prefer for the links to redirect
As a single point of confirmation, Webpack 2 is doing something like this: |
I was just bitten by this today, came to file this same issue. I searched for "rust unsafe keyword", the first result was https://doc.rust-lang.org/book/unsafe.html , and from the landing page there it was 100% unclear to me that clicking "first-edition/" would take me to the relevant page in the original book. We really need to do something here, I can't imagine how many people are being frustrated by this. |
I suggest changing it to something short, with very prominent links: There is a new edition of the bookThis is an old link. You can continue to the exact older page. If you're trying to learn Rust, checking out the second edition might be a better choice. |
update book with redirect fixes Fixes rust-lang#42632
When I google Rust-related topics I often land on the dead links from the old book, e.g.:
https://www.google.co.uk/search?q=rust+enum
for me the first result is:
https://doc.rust-lang.org/book/enums.html
It even has a relevant (out of date?) description:
but the page itself looks like a 404. It does not contain the content I searched for. There is a link to the book page in the block of text, but landing on that page gives such an off-putting "dead-end" impression that I didn't notice it until half way of writing this bug.
Can you remove these "redirect" pages with robots.txt? (or HTTP redirect straight to
/first-edition
)Having such pages on the official domain makes a very negative impression — it looks like a combination of a broken link and abandoned out of date documentation.
The text was updated successfully, but these errors were encountered: