How To Fix Broken Links On Your Website

Ranked #7,527 in Education, #165,380 overall

404 Page Not Found?

If you have missing pages or broken links on your site, your visitors are likely to get frustrated and leave. Don't despair! In this lens, I'll show you how to find and fix broken links in your site!

Finding Broken Links On Your Site

Step One: Use Xenu's Link Sleuth

Using Xenu's Link Sleuth

The first step is to download and use Xenu's Link Sleuth. This is a cool freeware program for Windows that can check your entire site in seconds. You'll see a large list of every URL in your site it can find, and URLs that got an "Page Not Found" error will be marked red. (Keep the window open, and read on!)

Alternatively, you can use the official w3c linkchecker online. Xenu's Link Sleuth is a lot faster and leaner though.

Hint: You can also use this tool on someone else's site. People love you for helping them with their site!

Step Two: Check Google webmaster tools

Google webmaster tools: crawl errors

Sign up for Google webmaster tools! It's cool and it's free. And if you haven't done so already, sign up now. This tool basically allows you to see all problems Google has found on your site.

If you go to "Crawl Errors" you'll see an overview of missing pages Google found. These will also include pages not linked to on your site anymore, but which still show up in Googles results. Note the missing pages and head on to the fixing section!

Fixing Your Site

Step Three: Remove links to pages that you deleted on purpose

Throw away old connections

You really didn't need that page anymore? Make sure you delete all links to it. If the page has moved, update all references to the new location.

Step Four: Mark pages as moved (warning: technical knowledge required!)

301 Moved Permanently

Are your visitors trying to reach pages that you moved to another spot, or to another site? Then mark them as moved. On most sites you can do this by modifying a htaccess file on your webserver.

The reason I added this step is because other sites might still have a link pointing to the original location of pages you moved. All links on your own site should already point to the new location.

Prevent Broken Links In The Future!

Step Five: WebCite interesting pages

The webcite archive request page

If you are referencing interesting articles on your site, it's a shame to find out they don't exist anymore. To make sure your visitors can still take a look at your resources after they've gone, add a WebCite. WebCitation.org allows you to make a free copy of content you'd like save, and you can add a link to the copy on your site next to the original.

Here's an example of how you might use it:

References used for this article

1. Example Webpage. http://www.example.org. Accessed: 2010-04-11. [Archived by WebCite]



Note: Their service is down now and then, but all your archived pages are stored safely.

Last step: Mark your calendar!

Mark your calendar!Don't forget to bookmark this page and repeat these steps every few months. That way you'll have happy visitors, and happy visitors mean a happy webmaster!

Commenters Get $5!

Okay... maybe not. But please comment anyway. :)

submit

by

DaanBakker

I'm a Computer Science student from the Netherlands who hates broken links. :)

Feeling creative? Create a Lens!