Website Broken Links: What to Do
- A broken link is a URL that returns a 404 error or doesn't load as expected.
- Identify broken links by clicking on links or using a website crawler tool.
- Google Search Console helps you monitor and fix broken links on your website.
Broken links can harm your site's reputation and user experience. A broken link is a URL that returns a 404 error or doesn't load as expected. Outdated content or mistyped links are the usual causes.
What are broken links and how to confirm them?
A broken link is a hyperlink on your website that doesn't work as expected. It may lead to a 404 error, a "page not found" message, or simply not load at all. Broken links can occur when a page or file is deleted, moved, or renamed, or when a website URL changes.
Identifying broken links
To identify broken links, check your website for links that don't work or load correctly. You can do this by clicking on links throughout your site or by using a website crawler tool. A website crawler is a software program that scans your site and reports any broken links it finds.
Confirming broken links with Google Search Console
To confirm broken links on your website, use Google Search Console. This free tool helps you monitor how Google sees your site and spot technical issues. These include URLs that return a 404. To use Search Console:
- Open Indexing > Pages and look for the reason "Not found (404)"
- Check how many pages are listed under that reason
- Click the reason to see example URLs that return a 404
- Fix or redirect each one, then click "Validate fix"
Common causes of broken links on websites
Outdated content is a common reason for broken links. When a page is changed or removed, internal links to it can break. This can happen when a business rebrands, merges with another company, or retires a product line.
Incorrect links can also cause problems. This might occur when a website's URL structure changes, or when a link is typed incorrectly. For example, a typo in a URL can lead to a 404 error and a broken link.
Technical issues can also cause broken links. These might include problems with the website's hosting, server, or underlying code. A website hacked by malware can also lead to broken links, as discussed in Website Hacked? Signs, Spam Links and What to Do First.
- Incorrectly formatted links, such as missing or extra slashes
- Links to non-existent or deleted pages
- Broken links to external websites that have changed their URL structure
- Links to files that have been moved or renamed
- Server-side errors, such as 500 Internal Server Errors
Step-by-step guide to fixing broken links
Identify broken links using Google Search Console
Open the Pages report in Google Search Console and review the URLs listed under "Not found (404)". Not every URL there is a broken link on your site. Some may come from old pages or from links on other websites. To trace a URL, inspect it with the URL Inspection tool, which sometimes shows a page that links to it.
Use a text editor to find broken links on your website
Open your website's HTML files in a text editor and search for the broken URL. You can use the "Find" function to search for the URL. This will help you locate the link in your website's code.
Fix the broken links
- Update the URL in the website code to point to a working URL.
- If the URL is no longer available, replace it with an alternative link or remove it altogether.
- Test the link to make sure it works correctly.
- If you're using a plugin or CMS, update the link in the plugin or CMS settings.
- If you're not sure how to fix the link, search for help online or ask a developer.
Preventing broken links on your website
Regular maintenance
Regularly updating your website's content and links can help prevent broken links. Review and check the links on your site, especially after you make changes. You can also set a schedule to review links regularly and catch issues before they grow.
Using link-checking tools
Use link-checking tools to find broken links on your website. These tools scan your site and report broken links, which makes them easier to fix. Some tools also help you update or remove the broken links.
- Use tools like Google Search Console to monitor your website's performance and identify broken links.
- Set up a schedule to regularly check your website's links using link-checking tools.
- Consider using a plugin or extension to automate the link-checking process.
- Make sure to test links after making changes to your website to catch any issues early.
- Always check the links of any external resources you add to your website to ensure they are correct and up-to-date.
Additional tips
External sites change too, so recheck links to them from time to time. Update your links when an outside resource moves. If your site moves from HTTP to HTTPS, update your internal links as well. Why Your Website Says "Not Secure" (and How to Fix It) can guide you on how to handle HTTPS changes.
If you would rather hand this job to someone else, it is the kind of work our website services cover.
Frequently asked questions
How do I find broken links on my website?
You can use a website crawler tool or check your website by clicking on links. Google Search Console can also help. Open Indexing > Pages and look for the 'Not found (404)' reason.
What causes broken links on a website?
Outdated content, incorrect links, and technical issues like hosting or server problems can cause broken links. A website hacked by malware can also lead to broken links.
How do I fix broken links on my website?
Update the link to the correct URL, or remove it if the content is no longer available. If a page has moved, redirect the old URL to the new one. A website crawler can help you find every broken link first.
Can broken links affect my website's reputation?
Yes, broken links can harm your online reputation and user experience. They can make your website look unprofessional and unreliable.
How do I prevent broken links on my website?
Review your website's content and links regularly. Run a website crawler tool on a schedule to find broken links before visitors do.
What is a 404 error?
A 404 error is an HTTP status code that means the server could not find the requested page or resource. You often see it after clicking a broken link.
Want a free check of your site?
Send us your web address. We'll look at it and tell you in plain English whether it has this problem, what else we notice, and what a fix would involve. Free, with no obligation.
Get a free site check →Further reading
General advice only: check with your host or developer before changing a live site. How we write.