Link Building

How to Find and Fix Broken Links on Your Website

By Yue June 02, 2010 Posted In: Link Building Comments: 15

If you have a website, I'm sure you’ve put a lot of hard work and long hours into making it a valuable resource for your visitors. But if your links aren't working, it can derail all of your hard work. Broken links on your website can be harmful in two ways:

  • They make for a bad user experience – When users click on links and reach dead-end 404 errors, they get frustrated and may never return.
  • They devalue your SEO efforts – Broken links restrict the flow of link equity throughout your site, which impacts rankings negatively.

To avoid these potential pitfalls, you should periodically check for broken links on your entire website. If you’re wondering how to do this, you’re not alone. The good news is we’ve done this work before and we’ve documented everything in a step-by-step, easy-to-follow process, which we hope you find helpful. So here is a comprehensive guide to helping you find and fix broken links across your website.

Step 1: Find broken links

There are a number of tools you can use to identify broken links, many of them free.

  • Google Analytics

Google Analytics is a great free tool for tracking website performance, and it’s also helpful for easily finding broken links. First, log into your Google Analytics account and set the evaluation period for the amount of time you want to look at. If you check for broken links monthly, set the period for the month since your last check. Here I will use the WordStream account as an example, with the time period set for April 1, 2010 – April 30, 2010 on the dashboard.Find broken links on Google Analytics FreeGo to Content – Content by Title on the dashboard, and load the page. Create a filter at the bottom by typing in the title of your website’s 404 error page in the blank box after “Filter Page Title: Containing”. The title of WordStream’s 404 error page reads: “Sorry, there's been an error and this page may not exist. Don't leave though!”Find broken links free All kinds of nonexistent or broken links will trigger the 404 error page. Most websites do little with this page, frustrating site visitors. But at WordStream, we optimize the page to take advantage of this valuable piece of real estate: internal links to important pages are listed right below the error, along with a “Contact Us” form.Broken links error page The next step is to click the “Go” button on the Google Analytics filter page. Then click on the page title to view details. In our example, the WordStream 404 error page was visited 126 times via 79 pages between April 1 and April 30. For easier navigation, you can change the rows shown per page from 10 to 100 (to see all 79 rows) at the bottom right.

Google Analytics offers the ability to set email alerts to get these broken link reports on a regular basis, as well as to export broken link details.Broken links report Remember that redirecting and fixing broken links is an ongoing process. For the average website, once per month is an appropriate cycle.

  • Xenu

Another free tool we recommend is Xenu Link Sleuth. After you've installed the Xenu software and opened the tool, go to File – Check URL, and enter your website’s domain. Uncheck the box named “check external links”, and click “OK” to run the analysis. Note that if it’s the first time you’ve used Xenu, it can take a little while to complete the report. So be patient.

Find broken links software

Step 2: Create a report and track your changes

After identifying your broken links, create an Excel spreadsheet to track link redirect processes. Name it something like “Broken Link Redirect Report.” In Google Analytics, you can export the report you just created by clicking Export – CSV for Excel on the top of the page, and downloading the file. For our purposes, we only need the data on broken links, page views and unique page views, so copy and paste these data columns into the Excel spreadsheet you have created.

You can export data from Xenu too; click on File, then Export to Tab Separated File, and then open that text file with Excel.

Next, organize the main data from Google Analytics and Xenu into separate sections on your Excel spreadsheet. It will look similar to this:

Broken Link Redirect Report

Step 3: Analyze data and decide which pages should be redirected

After all the preparation, we come to the important stage. Both Google Analytics and Xenu give us a list of links that may be broken. But before actually redirecting them, you should first analyze the pages and the reasons they may not be working properly.

From the Google Analytics section of the short sample above, we can see that not all broken links are created equal. Some links are actually visited quite often while others are not. Many instances of broken links or visits to a stray URL occur only once. These URLs may be a product of human error or someone mistyping an incorrect URL into the address bar and may not be worth fixing, like links #7 and #8. However, broken links with multiple visits are probably worth the time and effort to fix as they show a trend (even if it is one of human error).

Also, for some links, we can easily figure out the correct URL and fill in the data in the spreadsheet; for other links, we can put a tentative URL there and highlight it with a different color; and for the rest of the links, we can redirect to the domain homepage. In conclusion, we will only redirect the links with many visits and those with an underlying error-causing rule.

The Xenu report has the advantage of not displaying URLs that were recorded in your analytics because of a typing error. All the links shown in Xenu are actually existing links that live on the site. But these URLs may still contain character errors. For example, links #4 and #5 are caused the by the same problem: “#” is replaced by “%2523.” When we identify these instances, we need to determine the cause and fix the same problem across all instances.

This step will be complete once you’ve located the links that need to be redirected and  documented them all in your Broken Link Redirect Report.

Step 4: Redirect in CMS

Finally, it's time to actually redirect the broken links in your content management system (CMS). I will use WordStream’s Drupal CMS as an example.

Go to Administration – Site building – URL redirects. Click “Add redirect”. Fill in the “From” and “To” blanks by copying and pasting from the final Broken Link Redirect Report. Pay attention to the link format during the process. Select “301 Moved Permanently” in the drop-down Redirect Type menu. Click “Create new redirect”.

Fix broken links redirect Repeat the above process to redirect all the broken links and update the Broken Link Redirect Report.Mission accomplished! Now you can have even more pride for your website because ALL your links work, making both users and the search engines happy! 

Unnatural links notifications




If you enjoyed this post, please consider leaving a comment.

Comments

Wednesday June 02, 2010

Bruno Hug (not verified) Said:

Great article, it's really useful especially for analytics. One little issue with Xenu, it uses a lot a bandwith and CPU if the settings are set to high, and might overload/slow a server. I can also recommand "Broken link checker" is the site is under Wordpress

Wednesday June 02, 2010

Trevor (not verified) Said:

Nothing makes me leave a site faster than 2 or 3 broken links in a row.

Showing a new way to use Google Analytics is great! There are so many uses for it, it's hard to know everything about it.

Thanks for the tips, very helpful.

Wednesday June 02, 2010

seo tool « Эхо блогосферы (not verified) Said:

[...] Yue пишет: They devalue your SEO efforts – Broken links restrict the flow of link equity throughout your site, which impacts rankings negatively. To avoid these potential pitfalls, you should periodically check for broken links on your entire website. … Google Analytics is a great free tool for tracking website performance, and it’s also helpful for easily finding broken links. First, log into your Google Analytics account and set the evaluation period for the amount of time you … [...]

Wednesday June 02, 2010

zhaiduo (not verified) Said:

I suggest add step 5: check your site log, such as awstats. ^^

Thursday June 03, 2010

Master Resale Rights Ebook Store (not verified) Said:

I did not know you could use the filters in Google to quickly find the pages with broken links. This is great and beats the process I have used in the past. My time is reduced by at least an hour now. No need to scrape then build a report.

Wednesday June 09, 2010

How to Optimize Your Website for Bing | iStrategy 2010 (not verified) Said:

[...] Bing specifies in its Webmaster Center that it may not be able to index websites with broken links effectively. If it can’t index your site effectively, then your content might not appear in the Bing results for your SEO keywords. (Check out this recent post for tips on finding and fixing broken links.) [...]

Thursday July 22, 2010

How to Fix Broken Links (not verified) Said:

[...] How to Find and Fix Broken Links on Your Website | WordStream [...]

Monday September 13, 2010

PLR (not verified) Said:

I think webmaster tools has this option aswell to check website links. But your right there are many free options out there.

Wednesday November 17, 2010

links for 2010-11-17 | the reX-Files (not verified) Said:

[...] How to Find and Fix Broken Links on Your Website | WordStream Very useful in Google Analytics. (tags: analytics) This entry was posted in Bookmarked. Bookmark the permalink. ← Emotional, Understated, Progressive, Relaxed [...]

Friday May 11, 2012

Apple Boy (not verified) Said:

That was so helpful. really need this to fix some issues on my site.

P/S i really like your comment boxsmiley

Wednesday May 16, 2012

007gal (not verified) Said:

I think I am the only one not understanding what is going on. Xenu gave me 0 broken links whilst megrisoft showed me this long list of bad links.

what is the next step of actually trying to fix it after seeing the report? My blog goes blank white if I dare activate google analytics or even broken link checker!

Please help.

 

Friday May 18, 2012

Zubair Ahmed (not verified) Said:

Thanks for the post. Being a Webmaster I know hotn important it is to fix broken links. Not only it will provide a bad user experience but also it affects the overall performance.

 

Thanks alot for the tip

Wednesday November 21, 2012

sandeep (not verified) Said:

nice and informative  blog but i don't know about the wordstream account.Plz snd me  details about it.

Tuesday November 12, 2013

sagar nandwani (not verified) Said:

Nice share 
Broken links can hurt our blogs,hence we should regularly check our blogs for broken links.I use the link sleuth tool and it works really well for me. I’ve fixed a lot of broken links for my blog with this tool.Thanks for sharing the information.

Wednesday January 15, 2014

Vin Dicarlo (not verified) Said:

Really great tips to find broken links. Anyway, I have used BLC (Broken Link Checker) WordPress Plugin which automatically find and fix all the broken links even external or redirected links.

Leave a Comment

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.
 
Free Keyword Tool

Get thousands of relevent keyword suggestions - more,
faster, free!

Free Keyword Niche Finder

Discover profitable pockets of keywords for your
business.

Free Negative Keyword Suggestion Tool

Identify wasted spend before it happens and increase
your paid search ROI.

Contact Us | Company | Support | Site Map | Trademarks | Privacy Policy © 2007-2014 WordStream, Inc. All rights reserved.