Sub topic 14
Reclaiming links to your own broken or moved pages
This chapter assumes you can read a backlink export (a CSV of linking pages and target URLs), know what 200, 301 and 404 mean, and understand anchor tags. It covers a tactic with a different starting point from the earlier ones. You are not looking for dead links on other sites. You are looking for links that already point to your own site and are failing to deliver value.
Why this tactic comes first in priority
Other sites already chose to link to you. Those links exist, so you do not need to persuade anyone that your content deserves a mention. The only problem is that the destination no longer works as intended. Fixing that is usually a change on your own server, with no outreach at all.
Links to your own pages break for a few common reasons:
- You deleted a page and never redirected it.
- You changed a URL during a redesign, a CMS migration or a switch from HTTP to HTTPS.
- You renamed a slug or folder.
- Someone linked to a mistyped URL, for example with a trailing character or a wrong case.
- A redirect was set up, but it points to an irrelevant page, or it was later removed.
Step 1: Find backlinks that land on errors
Export the "best by links" or "top pages" report from your backlink tool, or the "Links" report from Google Search Console. You want one row per target URL on your site, with the number of referring domains. Then check the HTTP status of each target URL.
The script below reads a CSV with a target_url column and a referring_domains column. It reports every target that does not end in a clean 200 response, and it records the redirect chain so you can spot long chains and redirects that land on the wrong page.
import csv
import requests
HEADERS = {"User-Agent": "link-audit/1.0"}
def check_target(url, timeout=10):
try:
resp = requests.get(url, headers=HEADERS, allow_redirects=True, timeout=timeout)
except requests.RequestException:
return None, [], url
chain = [r.status_code for r in resp.history]
return resp.status_code, chain, resp.url
def audit(csv_path):
rows = []
with open(csv_path, newline="", encoding="utf-8") as f:
for row in csv.DictReader(f):
status, chain, final_url = check_target(row["target_url"])
if status != 200 or len(chain) > 1:
rows.append({
"target_url": row["target_url"],
"referring_domains": int(row["referring_domains"]),
"status": status,
"redirect_hops": len(chain),
"final_url": final_url,
})
return sorted(rows, key=lambda r: r["referring_domains"], reverse=True)
if __name__ == "__main__":
for r in audit("backlinks_by_target.csv"):
print(r["referring_domains"], r["status"], r["redirect_hops"], r["target_url"], "->", r["final_url"])Sorting by referring domains puts the most valuable fixes at the top. A 404 with 40 linking domains deserves attention before a 404 with one.
Your own server logs and Search Console's Pages report also list URLs that return 404 to crawlers. Cross-reference them with your backlink export. A URL that appears in both has real links and real traffic hitting an error.
Step 2: Classify each problem
Not every row needs the same fix. Sort the findings into these groups.
| Situation | What you see | Fix |
|---|---|---|
| Page removed, equivalent exists | 404 or 410, similar page live | 301 redirect to the equivalent page |
| Page moved | 404, or a redirect chain | 301 redirect straight to the new URL |
| Page removed, no equivalent | 404 or 410, nothing similar | Restore the page, or create a replacement |
| Redirect lands on the homepage or an unrelated page | 200 after redirect, wrong content | Redirect to a relevant page |
| Long redirect chain | 2 or more hops | Point the first URL directly to the final one |
| Soft 404 | 200 status with "not found" content | Return a real 404 or 301, or restore the content |
| Mistyped link from another site | 404 on a URL you never published | Redirect it, or ask the site owner to correct it |
Step 3: Choose the right redirect
A 301 redirect (permanent) tells search engines that the old URL has moved for good and that the new URL should receive the old URL's signals. A 302 redirect (temporary) says the move may be reversed. Use 301 for reclamation work.
The most common mistake is redirecting everything to the homepage. Google may treat a redirect to an irrelevant destination as a soft 404, so the link equity is not reliably passed on. The visitor is also lost, because someone who clicked a link about "event tracking" does not want a generic homepage. Match the intent of the old page.
Here is an example for an Apache .htaccess file and an equivalent for nginx:
# Apache (.htaccess)
Redirect 301 /guide-to-event-tracking /event-tracking-guide
# nginx (inside the server block)
location = /guide-to-event-tracking {
return 301 /event-tracking-guide;
}For a large migration, keep the mapping in a spreadsheet with columns for old URL, new URL and the reason. Generate the server rules from that file so they stay consistent.
After deploying, request each old URL again and confirm a single 301 hop followed by a 200 response. Then check that the destination page is indexable. A redirect to a page with noindex wastes the link.
Step 4: Handle links you cannot fix with a redirect
Sometimes a redirect is not enough or not possible.
- The link points to a URL with a typo you do not control. A redirect rule can catch the common typo. If the linking page is high value, a short email asking the site owner to correct the URL is reasonable.
- The old page had no good equivalent. A redirect to a weak match gives little benefit. Consider whether the topic deserves a new page. The replacement-content criteria from the broken link building chapters apply here too: cover what the old page covered, and do it well.
- The link sits on a page that changed the anchor to something negative. This is rare. Handle it as an outreach question, not a redirect.
When you do contact a site owner, keep the message short and specific, as in earlier chapters. Name the linking page, the URL, and the exact correction. Because the owner already linked to you, the tone is thankful and the request is small.
Edge cases
- Redirects removed later. Teams often delete old redirect rules during cleanups. Re-run the audit on a schedule, since a link that worked last quarter can fail now.
- Parameters and fragments. Links with tracking parameters (
?utm_source=...) can appear as separate rows in exports. Normalize URLs before counting. - Case and trailing slashes.
/Guideand/guide/may be different URLs on some servers. Check how your server treats them and add a canonical rule. - Canonical tags. If the old page had a canonical tag pointing elsewhere, check that the redirect target matches it.
- Links with nofollow, sponsored or ugc. These still bring visitors, but they pass less or no ranking signal. Prioritize followed links when time is limited.
- Very old links. A link from a dead or abandoned site gives little value. Check that the linking page itself still returns 200 before spending effort.
Measuring the result
Record the date of each fix and the referring domains it covers. After a few weeks, check that crawlers now see the redirect, by looking at the Search Console URL Inspection tool, and watch organic traffic and rankings for the destination page. Count recovered links as a share of broken ones found. This feeds the same tracking sheet used for outreach in the earlier tracking chapter.
Exercise
Your audit finds that /old-pricing-guide has 25 referring domains and returns a 404. Your site now has /pricing-comparison, which covers the same topic. Another dead URL, /2019-conference, has 3 referring domains and no related page. What do you do with each, and how do you verify the first fix?
Show answer
Add a single 301 redirect from /old-pricing-guide to /pricing-comparison, because the intent matches and the URL has the most linking domains. Then request the old URL and confirm one 301 hop followed by a 200 on the destination, and that the destination is indexable (no noindex). For /2019-conference, do not redirect it to the homepage. Either redirect it to a closely related page, such as an events archive if one exists, or leave it as a 404 or 410 since the value is low and no relevant page exists.
Exercise
A backlinked URL redirects through three hops (301, 301, 302) and lands on a page that returns 200. Why is this a problem, and what is the fix?
Show answer
Long chains slow down visitors and crawlers, and the temporary 302 at the end can weaken the signal that the move is permanent. Replace the chain with one 301 from the original URL straight to the final destination, and update the intermediate rules so they also point there.