DEV Community

Branding Experts
Branding Experts

Posted on Edited on

How to Find and Repair Broken WordPress Redirects After a Redesign

A WordPress redesign can break links that never appear in the current navigation. We found two old directory links for Branding Experts that returned 404 even though both services still had live pages. Here’s how we fixed them.

Map old URLs to relevant pages

Start with old sitemaps, Search Console landing pages and directory listings. Record each old URL, the status it returns and the closest relevant replacement. We mapped /graphic-design/ to /branding/ and /search-engine-optimization-brisbane/ to /search-engine-optimization/.

Test the exact URL

Use the first request to check the initial response and its Location header. Use the second to follow the redirect and confirm where it lands.

url='https://brandingexperts.com.au/graphic-design/'
curl -sS -D - -o /dev/null "$url"
curl -sSL -o /dev/null -w 'status=%{http_code} hops=%{num_redirects} final=%{url_effective}\n' "$url"
Enter fullscreen mode Exit fullscreen mode

For this permanent move, we expected a 301 followed by a 200 on the intended service page, with one redirect hop. Open the final page as well to confirm it answers the visitor’s original question.

Check for cached 404s

WordPress had saved the redirect, but the exact URL with the trailing slash still returned a cached 404. The version without the slash already redirected. We purged the two affected URLs and retested the exact directory links. Both reached their intended service pages in one hop.

Add that public check to your launch checklist. Test the exact old URL after saving the redirect, then update internal links to point straight to the replacement.

For a broader site move, TempWebz’s migration support covers the technical work, and SEO Edge focuses on search visibility. Both are part of our XGEN Group portfolio.

Top comments (0)