How to Find and Fix Broken Links on Your Website: A Complete Technical SEO Guide
How to Find and Fix Broken Links on Your Website: A Complete Technical SEO Guide Introduction Links play an important role in website navigation, search engine crawling, and user experience. They connect web
How to Find and Fix Broken Links on Your Website: A Complete Technical SEO Guide
Introduction
Links play an important role in website navigation, search engine crawling, and user experience. They connect webpages, help visitors discover relevant information, and allow search engines to explore website content.
However, links can sometimes stop working. A webpage may be deleted, a URL may change, a website may become unavailable, or an external resource may be removed.
These problems create broken links.
Broken links can frustrate visitors, interrupt navigation, and make website maintenance more difficult. They can also interfere with search engine crawling when important internal links point to unavailable pages.
For website owners, SEO professionals, and web developers, regularly identifying and fixing broken links is an important part of technical SEO.
Tools.QBMFX.com is a browser-based platform for exploring online tools and developer utilities that support everyday website management and technical workflows.
In this guide, we will explain what broken links are, why they occur, how to identify them, how to fix common link errors, and how to build a practical broken-link auditing process.
1. What Are Broken Links?
A broken link is a hyperlink that does not successfully lead visitors to its intended destination.
When someone clicks a broken link, the browser may display an error page, an unavailable resource, or another unexpected response.
For example, consider this HTML link:
<a href="https://example.com/old-guide/">
Read the SEO Guide
</a>
If the destination page has been deleted and the server returns a 404 response, the link may be considered broken.
Broken links can occur in several places:
- Internal website navigation
- Blog articles
- Footer links
- Sidebar widgets
- Image links
- External references
- Download buttons
- Navigation menus
Not every unsuccessful request is necessarily a broken link. Temporary server problems, network failures, access restrictions, and crawler limitations can also cause checking tools to report unsuccessful responses.
Therefore, developers should investigate the actual HTTP response and destination before removing or changing a link.
2. Different Types of Broken Links
Understanding different link problems helps developers identify the appropriate solution.
A. Internal Broken Links
Internal links connect different pages within the same website.
Example:
<a href="/services/old-service/">
Our Services
</a>
If the destination page has been removed or renamed without a redirect, the internal link may return a 404 error.
Internal broken links should receive attention because they affect website navigation and can make important content harder to discover.
B. External Broken Links
External links point to pages on other websites.
Example:
<a href="https://example.org/reference-guide/">
Read the Reference Guide
</a>
If the external website removes the referenced page, the link may stop working.
External links can become broken even when your own website has not changed.
C. Image Broken Links
An image link can fail when its source file is deleted, moved, or made inaccessible.
Example:
<img
src="/images/old-banner.jpg"
alt="Website banner"
>
If the image file no longer exists, visitors may see a missing image.
D. Broken Download Links
Websites frequently provide downloadable PDFs, documents, images, and other resources.
For example:
<a href="/downloads/seo-checklist.pdf">
Download SEO Checklist
</a>
If the file is moved or deleted, the download link will no longer work.
E. Redirect Chains and Redirect Loops
Not all link problems return a 404 response.
A redirect chain occurs when a URL passes through multiple redirects before reaching its final destination.
A redirect loop occurs when URLs redirect repeatedly between one another without reaching a final page.
Both situations should be investigated because they can create unnecessary navigation and crawling problems.
3. What Causes Broken Links?
Broken links can develop for several reasons.
A. Deleted Webpages
A website administrator may remove an old article, service page, or product page without updating links that reference it.
B. Changed URL Structures
Website redesigns and migrations often change URL paths.
For example:
Old URL:
https://example.com/blog/seo-basics/
New URL:
https://example.com/guides/seo-basics/
If the old URL is removed without an appropriate redirect, existing links may become broken.
C. Typographical Errors
A simple mistake in a URL can prevent visitors from reaching the correct page.
Incorrect:
<a href="/contcat/">
Contact
</a>
Correct:
<a href="/contact/">
Contact
</a>
D. Removed External Resources
An external website may change its domain, delete an article, or reorganize its content.
This can cause previously valid outbound links to stop working.
E. Missing Files
Images, PDFs, JavaScript files, and other resources may be moved or deleted during website updates.
F. Incorrect Server Configuration
Server configuration changes, access restrictions, and deployment mistakes can also make previously accessible URLs unavailable.
4. Why Should Website Owners Fix Broken Links?
Broken-link maintenance is important for several reasons.
A. Better User Experience
Visitors expect links to lead to relevant information.
When links fail, users may become frustrated or leave the website.
B. Better Website Navigation
Internal links connect related pages and help visitors explore different sections.
Broken internal links interrupt these navigation paths.
C. Supporting Search Engine Crawling
Search engines use links to discover webpages.
Broken internal links can make website discovery less efficient, particularly when important pages have limited alternative internal links.
D. Maintaining Content Quality
Articles containing multiple outdated references can appear poorly maintained.
Reviewing links regularly helps maintain the usefulness and accuracy of published content.
E. Protecting Important Conversion Paths
Broken links in product pages, contact pages, registration flows, and service pages can interrupt important user journeys.
These links should receive priority during website audits.
It is important to understand that fixing broken links does not automatically improve Google rankings. It is primarily a website quality, usability, and technical maintenance activity.
5. How to Find Broken Links Manually
You do not always need specialized software to inspect website links.
For a small website, manual checking can be a useful starting point.
Method 1: Open Links in a Browser
Follow these steps:
- Open the webpage you want to inspect.
- Identify the links within the content.
- Open important links in a new tab.
- Check whether the destination loads successfully.
- Review the final URL and page content.
This method is useful for checking a small number of important links.
However, manually opening every link on a large website can be time-consuming.
Method 2: Use Browser Developer Tools
Browser developer tools can help inspect links and identify their destinations.
In Google Chrome:
- Open the webpage.
- Press F12.
- Select the Elements tab.
- Inspect the relevant anchor elements.
- Review their
hrefattributes.
You can also use JavaScript in the Console to list links on the current page.
const links = [
...document.querySelectorAll('a[href]')
];
console.table(
links.map(link => ({
text: link.innerText.trim(),
url: link.href
}))
);
This example displays the text and destination URL of links found in the current document.
It does not automatically verify whether those destinations are working.
Method 3: Check HTTP Status Codes
HTTP status codes provide useful information about server responses.
Common examples include:
| HTTP Status | Meaning |
|---|---|
| 200 | Successful response |
| 301 | Permanent redirect |
| 302 | Temporary redirect |
| 403 | Access forbidden |
| 404 | Resource not found |
| 410 | Resource permanently gone |
| 500 | Internal server error |
| 503 | Service temporarily unavailable |
A 404 response generally indicates that the requested resource could not be found.
However, developers should not assume every non-200 response means a permanently broken link.
For example, a 403 response may indicate an access restriction rather than a missing page.
6. How Online Tools Help Find Broken Links
Manual link checking works for small websites, but larger websites may contain hundreds or thousands of URLs.
Online website analysis tools and automated crawlers can help simplify repetitive checking tasks.
Depending on their functionality, suitable tools may help with:
- Discovering links on webpages
- Checking destination URLs
- Identifying HTTP response codes
- Finding internal broken links
- Detecting external link problems
- Reviewing redirect destinations
- Organizing URLs for further investigation
For developers and website owners who regularly work with browser-based utilities, explore Tools.QBMFX.com to discover online tools and developer resources that can support everyday website management tasks.
Choose a suitable tool according to the specific task and verify important findings before making changes.
A basic URL checker and a full website crawler do not necessarily provide the same functionality.
7. How to Fix Broken Links on Your Website
After identifying broken links, the next step is choosing the correct solution.
A. Update the Incorrect URL
If a link contains a typing mistake, replace it with the correct destination.
Incorrect:
<a href="/servces/">
Services
</a>
Correct:
<a href="/services/">
Services
</a>
B. Restore the Missing Page
If a deleted page still contains valuable content and should remain available, restoring it may be the most appropriate solution.
This is particularly useful when other websites link to the original URL.
C. Implement a 301 Redirect
If a page has permanently moved to another relevant URL, a 301 redirect can send visitors and crawlers to the new location.
For example:
Old URL:
/blog/old-seo-guide/
New URL:
/guides/seo-guide/
A server-side redirect can be configured to send requests from the old URL to the new one.
For an Apache server, a simple example is:
Redirect 301 /blog/old-seo-guide/ https://example.com/guides/seo-guide/
Always verify the redirect after implementation.
Avoid redirecting unrelated deleted pages to the homepage simply to eliminate 404 responses.
D. Replace Broken External Links
If an external reference no longer works:
- Search for the updated resource.
- Verify that it provides equivalent information.
- Replace the outdated URL.
- If no reliable alternative exists, remove the reference or explain that the resource is unavailable.
E. Fix Missing Images
If an image source is incorrect, update the image URL.
Example:
<img
src="/images/updated-banner.jpg"
alt="Website development banner"
>
Confirm that the new image is publicly accessible.
F. Remove Unnecessary Links
If the destination no longer exists and no suitable replacement is available, removing the link may be better than leaving a misleading destination.
8. How to Find Broken Links Across Multiple Website Pages
Checking one webpage is relatively simple. Auditing an entire website requires a more systematic approach.
Follow this workflow:
Step 1: Collect Website URLs
Use your XML sitemap or an existing website URL inventory to identify important pages.
Step 2: Crawl Internal Links
Use an appropriate website crawler to discover links across the website.
Step 3: Collect HTTP Responses
Record the response status for each destination URL.
Step 4: Separate Internal and External Links
Organize links into separate groups for easier analysis.
Step 5: Identify Broken Destinations
Look for confirmed missing pages, unavailable files, and other problematic responses.
Step 6: Review Redirects
Identify redirect chains, loops, and outdated destinations.
Step 7: Prioritize Important Links
Start with homepage navigation, important service pages, popular articles, and conversion-related links.
Step 8: Apply Corrections
Update URLs, restore content, implement appropriate redirects, or remove unnecessary links.
Step 9: Run the Audit Again
Repeat the crawl to confirm that the identified problems have been addressed.
Step 10: Maintain an Audit Record
Keep a record of corrected URLs and remaining issues for future website maintenance.
For large websites, automated crawling and spreadsheet-based reporting can make this process more manageable.
9. Internal Links vs. External Links: Which Should You Fix First?
Both types of links deserve attention, but their priority can depend on the website's goals.
| Factor | Internal Links | External Links |
|---|---|---|
| Destination | Same website | Another website |
| Navigation impact | Direct | Depends on context |
| Website control | Usually high | Usually limited |
| Common solution | Update URL or redirect | Replace or remove link |
| Maintenance priority | Important pages first | Important references first |
A practical approach is to prioritize broken internal links that affect important website sections.
After that, review external references, especially those used in important guides, tutorials, and research articles.
10. Common Broken-Link Auditing Mistakes
A. Fixing Every 404 with a Homepage Redirect
Not every missing URL should redirect to the homepage.
A redirect should normally lead to a relevant replacement.
Otherwise, visitors may receive content that does not match what they expected.
B. Ignoring External Links
External references can become outdated even when your website remains unchanged.
Review important external links periodically.
C. Treating Temporary Errors as Permanent
A server timeout or temporary 503 response does not necessarily mean the destination has been deleted.
Retry and investigate before removing the link.
D. Ignoring Redirect Chains
Redirect chains can create unnecessary requests and make website navigation less efficient.
Where appropriate, update internal links to point directly to their final destinations.
E. Forgetting Image and Download Links
Broken links are not limited to text hyperlinks.
Check downloadable files, embedded resources, and images as part of a complete audit.
F. Not Rechecking After Fixes
A correction should always be verified.
Run the relevant checks again to confirm that the destination now works as expected.
11. Recommended Resources for Broken-Link Auditing
The following resources can help developers and website owners maintain website links.
Tools.QBMFX.com
Explore browser-based online utilities and developer resources for everyday website and technical tasks.
Google Search Console
https://search.google.com/search-console
Useful for reviewing available indexing information and inspecting individual URLs.
Google Search Central: Crawling and Indexing
https://developers.google.com/search/docs/crawling-indexing/overview
Official documentation explaining how Google discovers, crawls, and indexes webpages.
Google Search Central: Redirects
https://developers.google.com/search/docs/crawling-indexing/301-redirects
Useful guidance for implementing redirects when URLs permanently change.
MDN Web Docs: HTTP Response Status Codes
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status
Technical reference explaining HTTP response status codes.
12. Broken-Link Audit Checklist
Before completing a website link audit, review this checklist:
- [ ] Important internal links have been checked.
- [ ] External references have been reviewed.
- [ ] Broken image URLs have been identified.
- [ ] Download links have been tested.
- [ ] Confirmed 404 responses have been investigated.
- [ ] Temporary server errors have been rechecked.
- [ ] Incorrect URLs have been corrected.
- [ ] Relevant missing pages have been restored where appropriate.
- [ ] Permanent redirects have been configured correctly.
- [ ] Redirect chains and loops have been reviewed.
- [ ] Important internal links point directly to final destinations.
- [ ] The audit has been repeated after corrections.
Following this checklist can help maintain a more reliable website structure.
Conclusion
Broken links are a common website maintenance problem that can affect navigation, user experience, and the discovery of important webpages.
From checking individual URLs through browser developer tools to auditing hundreds of links using automated crawlers, developers have several ways to identify and resolve these problems.
The correct solution depends on the cause. Some links need a simple URL correction, while others require a relevant redirect, restored content, or removal.
For developers and website owners looking for additional browser-based resources, Tools.QBMFX.com provides an online destination for exploring useful tools and developer utilities that support everyday website workflows.
You can also explore online tools at Tools.QBMFX.com as part of your regular technical SEO and website maintenance routine.
Regular link auditing, accurate redirects, and consistent internal linking can help maintain a better-organized and more reliable website.
References
Google Search Central – Crawling and Indexing
https://developers.google.com/search/docs/crawling-indexing/overviewGoogle Search Central – Redirects and Google Search
https://developers.google.com/search/docs/crawling-indexing/301-redirectsGoogle Search Console
https://search.google.com/search-consoleMDN Web Docs – HTTP Response Status Codes
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/StatusMDN Web Docs – HTML Anchor Element
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/aTools.QBMFX.com
https://tools.qbmfx.com/
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.