Blog
How to Fix Broken Links on a Website: Step-by-Step Technical Guide
Want a Quick Summary?
Summarize this article instantly with ChatGPT.
Broken links (commonly returning HTTP 404 or 410 errors) happen when a page has been moved, renamed, or deleted without setting up proper redirects. Over time, recurring site migrations, deleted product lines, and mistyped URLs accumulate dead links across your site.
Left unresolved, broken links frustrate users, break conversion pathways, waste search engine crawl budget, and dilute internal PageRank equity. Learning how to fix broken links on a website systematically helps you locate dead internal and external references, map permanent redirects, and keep your crawlability clean.
The 2 Types of Broken Links
Before jumping into remediation, understand the difference between internal and external broken links:
- Internal Broken Links: Links pointing from one page on your domain to another page on your same domain that no longer exists (e.g., your blog linking to a deleted service URL). These are fully within your direct control to repair.
- External / Outbound Broken Links: Links pointing from your content to third-party domains that have changed, shut down, or deleted their resources.
- Inbound Broken Links: Third-party websites linking to a page on your site that now returns a 404 error.
Step 1: Discover All Broken Links
You cannot fix what you have not identified. Use both crawler reports and live search console data to compile a complete inventory:
- Desktop Crawlers (Screaming Frog / Sitebulb): Run a complete crawl of your domain. Filter the "Response Codes" report by Client Error (4xx). Inspect the "Inlinks" tab at the bottom to find every live page linking to each broken URL.
- Google Search Console (GSC): Go to Indexing > Pages and check the "Not found (404)" report. This reveals pages Googlebot attempted to crawl but could not locate.
- Free Browser Extensions: For quick spot-checks on single long-form articles, use browser tools like Check My Links to highlight broken hyperlinks on the page in red.
Step 2: Fix Internal Broken Links at the Source
The cleanest way to resolve an internal broken link is to update the link directly on the page where it originates, rather than relying solely on server redirects.
- Identify the Source Page:
Using the crawler's "Inlinks" export, identify every live page containing the dead link.
- Update the Anchor Link:
Open the source page in your CMS (WordPress, Shopify, Webflow, or plain HTML). Edit the hyperlink to point directly to the active 200 OK destination.
- Remove Obsolete Hyperlinks:
If the referenced resource was permanently retired and has no modern alternative, remove the hyperlink and retain the plain text, or rewrite the surrounding sentence to maintain contextual clarity.
Step 3: Implement 301 Permanent Redirects for Valuable Pages
If the broken URL previously ranked on search engines, received regular referral traffic, or earned external backlinks from other domains, setting up an HTTP 301 redirect preserves link authority.
- Map 1-to-1 to the Most Relevant Live Page: Always redirect to the most relevant equivalent page (e.g., redirect a retired product to its newer replacement model or parent category). Avoid mass-redirecting all broken links to your homepage, which creates Soft 404 errors in search engines.
- Apache Servers (
.htaccess): Add standard redirect rules to your root configuration:Redirect 301 /old-page/ https://www.yourdomain.com/new-page/ - Nginx Servers (
nginx.conf): Configure rewrite directives in your server configuration:rewrite ^/old-page/?$ /new-page/ permanent; - CMS Plugins & Redirect Managers: In WordPress or Shopify, use redirection modules to map legacy URLs directly from your administrative dashboard without touching server configuration files.
Step 4: Clean Up Outbound Links to External Websites
Linking out to external dead pages makes your content look neglected and harms your site's perceived quality.
- Filter External 4xx Responses: In your crawler's "External" tab, filter by status codes 404, 410, and 5xx.
- Replace or Remove: Search for the updated URL on the third-party domain. If the resource is gone entirely, replace it with an authoritative alternative source, or remove the hyperlink while leaving the citation text intact.
Step 5: Reclaim Inbound Backlinks Pointing to Dead URLs
High-authority external websites linking to dead pages on your site represent lost ranking power and missed referral traffic.
- Export Inbound 404s: Use tools like Ahrefs, Semrush, or Google Search Console to view external backlinks pointing to 404 pages.
- Set Up 301 Redirects: Create permanent 301 redirects routing each dead inbound target to the closest active page on your website.
- Reach Out for High-Value Backlinks: For top-tier editorial links or major media mentions, send a polite email to the site editor requesting that they update the link to your new live URL.
Broken Link Remediation Matrix
Use the matrix below to choose the right technical fix based on the type of broken link:
| Broken Link Scenario | Where the Error Exists | Recommended Technical Fix | Expected Outcome |
|---|---|---|---|
| Renamed Internal URL | Internal site content & menus | Update href in source HTML to new URL; add 301 fallback | 0 redirect hops; 200 OK response |
| Deleted Page with Backlinks | Inbound external links / SERPs | Add 301 permanent redirect to closest relevant live page | Preserves PageRank; retains referral visits |
| Deleted Page (No Match or Links) | Obsolete content / zero traffic | Return 410 Gone header to prompt faster de-indexing | Search bots drop URL from index quickly |
| Dead External Resource Link | Outbound links in blog posts | Update href to modern source or remove hyperlink | Prevents dead ends for human readers |
| Typo in Navigation Menu | Global header or footer templates | Edit template code to correct the misspelled URL slug | Immediate sitewide navigation fix |
Step 6: Verify and Validate Fixes
After implementing your source edits and server redirect rules, verify that changes are working properly:
- Run a Verification Crawl:
Re-crawl the domain with Screaming Frog to confirm that internal 4xx errors have dropped to zero.
- Inspect in Google Search Console:
Open the "Not found (404)" report in GSC, select the resolved URLs, and click Validate Fix to trigger Googlebot recrawls.
- Check for Redirect Chains:
Ensure your 301 redirects resolve to the final 200 OK target in a single hop. Chained redirects (e.g., Page A > Page B > Page C) add server latency and waste crawl budget.
Automated Checkers vs. Professional Technical Auditing
While automated browser plugins can spot a single dead link, large websites with tens of thousands of URLs frequently suffer from deep architectural link rot, redirect loops, and faceted navigation bloat that require structured engineering roadmaps.
For organizations operating in competitive commercial markets looking for an exhaustive, developer-ready diagnostic roadmap, explore specialized website audit services in Dubai, UAE to eliminate underlying technical liabilities and ensure your internal linking structure supports long-term organic growth.
Maintain Proactive Link Health
Fixing broken links should not be an emergency task reserved for when search rankings decline. Running a technical link crawl quarterly, verifying URLs before publishing new articles, and mapping 1-to-1 redirects for retired pages ensures your website remains accessible, professional, and primed to rank competitively on search engines.
Looking for Measurable Business Growth?
Partner with BrandStory for end-to-end digital & creative excellence.
Transform Your Digital Growth with BrandStory
From SEO, PPC, social media marketing, and content marketing to website development, branding, and lead generation, BrandStory delivers result-driven digital marketing services in Dubai and across the UAE, helping businesses attract, engage, and convert more customers.
Trusted by 1000+ leading brands in Dubai and globally including:
Related Blogs
How to Fix Mobile Usability Issues: Step-by-Step Technical Guide
With Google operating entirely on mobile-first indexing, search engine crawlers assess, index, and rank web pages base...
How to Fix JavaScript SEO Issues: Complete Technical Guide
Modern web development relies heavily on JavaScript frameworks like React, Next.js, Vue, Angular, and Nuxt to build ri...
How to Fix Soft 404 Errors: Complete Technical SEO Guide
A Soft 404 error occurs when a web server responds with an HTTP 200 OK status code signaling success, but search engin...
How to Set Up Hreflang Tags: Technical SEO Implementation Guide
The hreflang attribute is an HTML specification that informs search engines about the language and geographical target...
How to Fix Mixed Content Errors: Complete Security Guide
A mixed content error occurs when an initial webpage loads securely over HTTPS, but subresources such as images, scrip...
How to Fix Missing Meta Descriptions: Complete SEO Guide
A missing meta description occurs when an HTML document lacks a <meta name="description"> tag in its <head>...
