27

Links to MSDN blog pages (e.g. http://blogs.msdn.com/b/ericlippert/archive/2009/11/16/closing-over-the-loop-variable-part-two.aspx) direct you to a page that states:

MSDN and TechNet blog sites have been retired, and blog content has been migrated and archived here.

effectively rendering these links broken.

When searching for url:blogs.msdn.com on Stack Overflow, we see the following:

47,838 results

Does this mean that there are almost 50 thousand posts on SO with broken MSDN blog links? If so, what is to be done?

N.B. I am unsure if every link to blogs.msdn.com is broken, at least all the ones I tried are.

11
  • 17
    Sigh. Microsoft has done it again. When will their system administrators learn that cool URIs don’t change? Yes, there are likely thousands of broken links to Microsoft blogs in SO posts, along with hundreds of links to Microsoft Connect (which were broken some time back by the obsoleting of Connect with no archive), and thousands of links to MSDN documentation that does not properly redirect to its new home. What do we do? I don’t know. URL rewriting with a bot may be an option for SE staff, but that requires we can find a stable mapping. Unlikely.
    – Cody Gray Mod
    Commented Feb 18, 2020 at 19:18
  • 2
    Definitely an issue. Historically MSDN has generated a decent amount of link rot. Sometime you can find them in the web archive (archive.org) and use those links. Other times, you are just out of luck.
    – Travis J
    Commented Feb 18, 2020 at 19:18
  • 1
    @CodyGray I guess MS sys admins are not allowed to install Apache mod_rewrite ....
    – rene
    Commented Feb 18, 2020 at 19:37
  • 2
    Microsoft has it for IIS too, @rene...
    – Cody Gray Mod
    Commented Feb 18, 2020 at 19:43
  • 3
    In the meantime, fixing the links (if possible) as you come across them is valid. You could maybe do a few edits for posts that are highly upvoted and/or get a lot of traffic but you don't want to flood the Active page with these edits unless folks decide it's worth a group effort to fix all of these posts (like a burnination request).
    – BSMP
    Commented Feb 18, 2020 at 19:58
  • 7
    The epicly facepalming bit is that 5 or 10 years back MS started creating (IIRC URL shortened) forward links intending that they could serve as safely hardcodable links into external documentation (ex Visual Studio); and then promptly broke them just like they have with every other URL on their collective sites every few months when someone gets bored and decides to completely redo the site hierarchies. I'm half convinced doing so is an annual review goal for MS PHBs? Commented Feb 18, 2020 at 20:04
  • 1
    I've never really understood how this is Stack Overflow's problem to fix. MSFT broke the links. If they don't feel that it's worth their time to preserve the links, why should SO? In any case, posts which reference blogs should be useful even without the links, right? Right?!? Commented Feb 18, 2020 at 20:40
  • 6
    @HereticMonkey agreed that there's no good way to mass fix it; and given MS's long history of breaking all their links would be only a short term fix. My SOP when finding them is to search on the URL text. 80-90% of the time Google can figure out where MS moved it to, or failing that go to the [wayback machine](archive.org] to find a mirror of the page and then update the individual question/answer with a working link. More broadly, this is why any answer needs to be able to stand on its own without any linked content. Commented Feb 18, 2020 at 20:45
  • 2
    I guess my point is, why are we doing MS's work for them? Why not leave them broken? Maybe if enough people start complaining to MS about them breaking their links they'll wise up. Maybe not, but in that case, they look like the idiots. Commented Feb 18, 2020 at 20:55
  • 11
    I agree it isn’t our fault, @Heretic, and that Microsoft looks like idiots for repeatedly breaking links. But having answers with dead links does reduce the overall quality and usefulness of our content for future viewers, so if there’s some way we can realistically address this, it makes sense for us to do so.
    – Cody Gray Mod
    Commented Feb 18, 2020 at 21:39
  • 1
    @HereticMonkey: I would like to complain to MS, but it's useless. Some users have already done that on GitHub, but all that MS says is "we added some redirects, but you have to life with the rest being broken". Microsoft, like all big companies, has an efficent way of ignoring the needs of its own users... So either we're stuck with the current situation or we do our best to improve it ourselves and do the stupid work of fixing the links (again). Commented Apr 8, 2020 at 9:26

1 Answer 1

27

I have some experience in fixing broken links and have set up a script which transforms these links: it turns out most (but not all) links can be fixed with some regex substitution:

Some links are still dead, and then the script tries to find the latest Wayback Machine copy. Results of the script can be monitored via my profile, though I have more scripts to fix other types of broken links as well.

I am unsure if every link to blogs.msdn.com is broken, at least all the ones I tried are.

When I wrote this, links to Raymond Chen's The Old New Thing were still working (but redirected to https://devblogs.microsoft.com/oldnewthing/). Nowadays, even those are broken.

5
  • 1
    Thank you for your work here, this seems like the best way forward for mass correction without a massive manual effort. I have a few questions - Do you have any idea what percentage of links can be rewritten easily? What does your script do if there is no available Wayback Machine copy? Should the rewritten links include the /en-us/ locale or should they be agnostic to allow for automatic locale assignment? Commented Apr 6, 2021 at 0:48
  • 1
    @CallumWatkins I have no hard figures, but I estimate ~70% can be rewritten, ~20% has a Wayback Machine copy and ~10% are lost forever (and the script doesn't touch those - maybe I can collect those links and ask later if anybody has a suitable replacement for them). I doubt (m)any blogs have been translated, so I'm not worried about a default locale.
    – Glorfindel
    Commented Apr 6, 2021 at 7:30
  • @Glorfindel: If your link checker includes wp-login.php in the URL, you should assume the link replacement failed. See for example revision 5 on stackoverflow.com/posts/2632844/revisions
    – Brian
    Commented Jul 13, 2022 at 17:58
  • @Brian thanks for the ping. This seems to be exclusive to Eric Lippert's blogs - I pinged him, he probably knows what's best :)
    – Glorfindel
    Commented Jul 13, 2022 at 18:17
  • 1
    Thanks for doing this! The last couple of edits here look weird though dba.stackexchange.com/posts/55203/revisions - for some reason it is adding wayback machine links to links that are already wayback machine links and where the existing wayback machine link was still accessible Commented Sep 15, 2023 at 16:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .