Scheduled broken-link and redirect checks that tell you the moment a link breaks — linkbruno.com

Changing URL structure is a redirect project pretending to be a design project. Adding /en/ in front of every path, moving /blog/post to /articles/post, or flattening /docs/v1/x into /docs/x will all look fine in the new templates on day one. The damage shows up in the links you do not control, and in the ones you do control but did not rewrite.

Here is the checklist I want before, during and after the change.

Before you change a path

1. Inventory the URLs you have today. Sitemap, access logs, Search Console's top pages, the CMS's own list, and any redirect file that already exists. You need the old shape in a spreadsheet, not a vibe. Include pagination, tag pages, downloads and feeds, not just the "real" articles.

2. Decide the new rule in writing, with examples. "Add /en for English" is not a rule. A rule is: /about becomes /en/about, / becomes /en or /en/, trailing slashes stay as they are, query strings are preserved, and /blog/foo becomes /en/blog/foo. Write ten old-to-new examples and have a second person try to break the rule.

3. List everything that emits URLs. Templates, emails, sitemaps, JSON-LD url and canonical, Open Graph og:url, RSS, sitemaps, the CMS "copy link" button, mobile deep links, sitemaps in robots.txt, and hardcoded links in old posts. A redirect will save visitors who hit the old path. It will not fix a sitemap that still publishes the old path, or a canonical that disagrees with the new one.

4. Freeze other URL experiments for a while. Do not also flip www, trailing slashes, or HTTP-to-HTTPS rules in the same deploy unless you have to. Each extra rule multiplies the chance of a chain or a loop.

5. Generate the redirect map from data, not by hand, if there are more than a few dozen URLs. A script over the inventory, plus a test that every old URL appears exactly once and points at a 200 (or a deliberate 410). Hand-written maps miss the ugly paths, which are the ones people have bookmarked.

During the change

6. Ship one 301 from each old URL to its final new URL. Not a hop to a generic /en/ that then hops again. Not a 302 "until we see". Chains and temporary statuses are how this kind of migration stays half-done for a year.

7. Preserve query strings, unless you know a parameter is dead. Logins, analytics, pagination ?page=2, and payment return URLs all use them. A trailing-slash or locale redirect that drops the query string will look like a clean 301 in a checker that didn't send one, and will fail in production.

8. Rewrite internal links and canonicals in the same deploy. If the new templates still emit the old paths, every page is a source of stale links, and you are relying on redirects forever for your own site. Same for rel=canonical, hreflang, and the sitemap: they should speak the new URLs on the day of the switch.

9. Check a sample from outside, including a pasted old link. curl -sSI the old URL, confirm a single 301 and a Location that is the final URL, then curl that. Then paste an old URL in a browser that already has the site cached. Then try a URL with a query string, and a URL that should 404 even under the new scheme.

The dangerous links after a path change are the ones you didn't put in the map, and the ones whose redirects drop a query string. linkbruno.com checks your pages and redirects on a schedule, so an old path that started 404ing, or a chain that appeared after a second rule shipped, shows up in a report.

After the change

10. Submit the new sitemap and keep the old redirects indefinitely. "A year" is a starting point, not a plan to delete the file on a calendar invite. Old links arrive from emails and PDFs for a long time. Search Console will spend weeks reclawing; help it with a sitemap of new URLs, and do not turn off the 301s when the graph looks nicer.

11. Grep the live site for leftover old-shape URLs. Your own posts, navigation, footer, legal pages, and JavaScript routers. Then grep emails and notification templates, which are not on the site and are the ones customers click.

12. Watch 404s, redirect hops and canonicals for a few weeks. A spike of 404s on old paths means the map is incomplete. A spike of 200s on old paths means the redirect never fired for those. A new URL that canonicals back to the old one will keep the migration from finishing in search.

Loops to test for on purpose

Locale prefixes are famous for this: /en/en/about, or /about → /en/about → /about because one layer adds the prefix and another strips it. Write tests for:

  • an old URL
  • the new URL (must be 200, not 301 to itself)
  • a double-prefixed URL (should be a single 301 to the canonical, or a 404, but not a loop)
  • HTTP and www versions of both shapes

If any of those is a loop, stop the rollout.

Related reading

Have you added a locale prefix or renamed a section? What was the URL that still 404ed a month later, and where was the leftover link?