Stack Exchange staff has a tool which can change a bunch of links without bumping the edited posts, see here: How to find and/or change a set of hyperlinks on a site?

In the situation that I've seen it was simply a replacement of one string by another - for example, something like replacing all occurrences of http://stackoverflow.com with https://stackoverflow.com.

Question. Would the same tool be able in addition to this search/replace also remove the .html (or some other string) at the end of the URL?

I am asking in connection with this recent post: Old Links to PlanetMath have Broken. If you check it, it seems that replacing http://planetmath.org/encyclopedia/ with https://planetmath.org/ and removing .html at the end could fix the problem. At least, it worked in the instances which I tried - certainly, a bit more checking is necessary before something is actually done. (The linked post is on Mathematics Meta. There are such links also on other sites, but this particular site has more than 180 of them.)

But I thought that it would be better to ask about this in general - so that if similar situations occur in connection with some other domain, we'll know from the answer here, whether such links have to be edited manually or whether they can be converted en masse.


1 Answer 1


It's just a simple Find & Replace tool which doesn't support wildcards. In that case, that means the operation needs to be performed once for every individual PlanetMath page that is being linked to (because the .html needs to be removed).

It's a trivial change for my Broken Link Repairer script, which does have the disadvantages that 1) it bumps the post and 2) on some sites (I saw a couple of Physics hits), it can only suggest edits. It has the advantages of checking whether the new link actually works and repairing other broken links (if any).

  • 7
    Confirmed - the url replace tool that we use is a strict (case-sensitive) find-replace. No wildcards, no regex (by design). Jan 13, 2022 at 19:33
  • Does the script have a rate-limiting feature? Jan 14, 2022 at 12:49
  • @This_is_NOT_a_forum yes, configurable. See here, except that these broken link scripts (I have a couple of them running) run once every three days.
    – Glorfindel Mod
    Jan 14, 2022 at 12:54

You must log in to answer this question.

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