Home›Academy›SEO Testing›Redirects

SEO Testing · Lesson 02 · Validation

Redirects

How to validate redirect maps before and after launch so migrations and URL changes do not lose pages, links, or rankings.

09 SEO Testing10 min Read timeIntermediate Level

02 / Validation

Redirect testing confirms that redirects work exactly as planned before and after they go live. Migrations, URL changes, HTTPS moves, and domain consolidations all depend on hundreds or thousands of redirects, and a small mistake can remove pages from search for weeks.

The Redirects lesson in Technical SEO explains redirect types. This lesson focuses on validation: testing redirect maps, catching chains and loops, and monitoring after launch.

1. Why redirects need testing

Wrong targets

Pages redirect to the homepage or an unrelated page, often treated as soft 404s.

Chains

Old URL to interim URL to final URL, adding latency and losing clarity.

Loops

A redirects to B, which redirects back to A.

Wrong status

302 used where a permanent 301 or 308 is intended.

Missing rules

Old URLs with backlinks or traffic return 404.

Pattern errors

Regex rules that catch the wrong URLs or drop parameters.

2. Building a testable redirect map

A redirect map lists every old URL and its expected final URL. Collect old URLs from a crawl of the current site, the XML sitemap, Search Console, analytics landing pages, and backlink tools, so URLs that are no longer linked internally are not missed.

old_url,expected_target,expected_status
/shoes/trail-runner-2,/running-shoes/trail-runner-2/,301
/blog/2019/crawl-tips,/blog/crawl-tips/,301
/old-sale,/sale/,301

3. Testing before launch

  1. Deploy rules to stagingTest with the same server or CDN configuration as production.
  2. Crawl the old URL listUse list mode to request every old URL on staging.
  3. Compare with the mapCheck final URL, status code, and number of hops for each row.
  4. Check final pagesConfirm targets return 200, are indexable, and are self-canonical.
  5. Fix and retestRepeat until every row matches.

The pre-launch checklist covers related launch checks.

4. What a passing redirect looks like

CheckPass condition
Status301 or 308 for permanent moves
HopsOne hop from old URL to final URL
Final status200
Final URLMatches the expected target in the map
IndexabilityFinal page is not noindex and canonicals to itself
Protocol and hostFinal URL uses the preferred HTTPS hostname

A failing redirect

Actual/shoes/trail-runner-2
301 to /products/trail-runner-2
301 to /running-shoes/trail-runner-2/
Two hops.
Fixed/shoes/trail-runner-2
301 to /running-shoes/trail-runner-2/
One hop to the final URL.

Update old rules to point directly at final URLs when adding new redirects.

5. Testing after launch

  1. Recrawl the old URL list on productionConfirm results match staging.
  2. Crawl the new siteFind internal links that still point to redirected URLs.
  3. Update the sitemapList only final URLs that return 200.
  4. Monitor Search ConsoleWatch Page indexing, 404s, and crawl stats.
  5. Check logsConfirm Googlebot is requesting and following redirects.

SiteAuditLint flags redirect chains, redirect loops, internal links to redirects, non-200 sitemap URLs, and backlinked redirects.

6. How long to monitor

Keep redirects in place for at least a year, and ideally permanently for URLs with backlinks. Monitor closely for the first weeks after a migration, then include redirect checks in scheduled audits.

7. Practical exercise: Test a redirect map

Redirect testing checklist

0 of 9 tasks completed

Key takeaways

  • Redirect testing validates targets, status codes, hops, and final pages.
  • Build the redirect map from several data sources to avoid missing URLs.
  • Test on staging with list mode before launch.
  • A passing redirect is one hop to a 200, indexable, self-canonical page.
  • Recrawl production and update internal links and sitemaps after launch.
  • Keep redirects long term and monitor them in scheduled audits.

Knowledge check

1. Where should old URLs for a redirect map come from?
2. What is the ideal number of hops?
3. What should the final URL return?
4. What should happen to internal links after launch?

Next, confirm that search engines process your changes in the Indexing tests lesson.