In business, it is pretty much well known that it requires less of a financial investment to keep a customer than it does to acquire a new one. The internet is really no different. Once you get a visitor on your site, or get them wanting to be on your site, it takes less investment to keep them there than it does to go bring in another new visitor. Therefore it is important to do whatever you can to keep acquired visitors on your site helping them move through the conversion process. Everything, that is, short of hijacking their web browser!

One of the easiest ways to lose visitors from your site is through broken or invalid links. You've been there before... surfing through a website, looking for things that interest you only to click on a link that brings you to something like this:

Generic 404 Redirect Page

What did you do when you hit that page? Hit the browser back button? Close the browser? Go to a different site? Perform a different search? Turn your computer off and go outside?

Most people will automatically hit the browser back button. If they hit that page from a your own site then that back button will do OK in keeping them on your site. Except that since they can't the information they want from you they'll likely leave to find someone who can.

But what if they came from a search engine? Or a link from another website? Or an old bookmark?

In these instances you just lost the visit, and quite possible the sale or lead.

What causes broken links?

Here are some common ways that broken links are created:

  • You rename a page and forget to change all your internal links
  • Another site links to the old page not knowing it's been moved or removed
  • A search engine ranks a deleted page and hasn't yet removed it from the index
  • Someone has bookmarked deleted or moved page in their browser or bookmarking service
  • Someone links to your page but screws up the link URL

When the broken links are internal, within your own site, those are easy to prevent and correct. But when broken links are external, from other sites or bookmarks, there is not a lot you can do to correct them, short of contacting each offender and asking them to change it.

No matter what, you can't always prevent people from linking to you incorrectly. So the onus is on you to do what you can to keep the visitor on your site despite the broken link.

Three ways to stop losing visitors from broken links:

Create a custom 404-error page

This is a catch-all solution that every site should do. If you don't have a custom 404-error page then you need to create one ASAP.

The idea here is to prevent visitors from getting the white page shown above, in favor of a customized page that keeps the visitor engaged with the website. Below is the custom 404 page from my site own site:

Custom 404 Redirect Page

A good 404-error page will look and feel just like any other page on your site. The only difference is that it let's the visitor know that hey hit an invalid URL. Let your visitors know that they page is gone, missing or moved. Then you'll want to present some options for the visitor. Give them some links to follow, helping them get to their intended destination.

Keep it clean and simple. Don't burden your visitors with too many options. Provide links to your main areas but getting them as close to their original intent as can possibly be determined (this can be done well with dynamic sites).

Creating the custom 404-error page is easy. Just take any other page on your site, gut out the content and replace it with your simple message and links. Save the file into your root director as something like 404-redirect.htm.

Now edit your .htaccess file with this line of code:

ErrorDocument 404 http://www.site.com/404-redirect.html

That should do the trick. A couple of things you want to keep in mind. Be sure you use all absolute links on this page, including image paths. This will ensure that if someone hits a broken link in a sub-directory such as www.site.com/directory/directory.html you won't have any broken links on the page that's supposed to correct your broken link problem.

You also want to make sure you actually create a custom page, not just use the code above to redirect people to your home page. This can cause considerable confusion, especially if someone keeps trying a link that takes them back to the home page, when it's not the page they expect. It's polite to give them the message that something is amiss.

Implement 301 Redirects

If you are moving or renaming pages on your website then you want to implement 301 redirects. The redirect is the single best way to not lose visitors that may attempt to visit moved pages at the old location. By implementing the redirect, the visitor (and the search engine) is automatically transferred from the old page location to it's new permanent home. The transition is seamless and the visitor will never even know that their link is broken (i.e. no thought required to keep doing what you want them to do!)

There are a number of ways to implement these redirects, but the best way is the 301 via the .htaccess file (if you have an apache server.) Simple add the following code to the .htaccess file, save and upload and you should see the redirect work:

Redirect permanent /page.htm http://www.site.com/page.htm

or

Redirect 301 /page.htm http://www.site.com/page.htm

Either of those will work. The 301 is a permanent redirect, but you can also implement a 302 temporary redirect if you're making only temporary changes.

If you don't implement 301 redirects on a page to page basis, then you'll have to rely on your custom 404 to keep the visitors on the site. But why show a "page not found" message when you can deliver the visitor directly to the page they hoped to land on? The 301 redirect simply helps you provide a better, seamless experience for your visitors.

Perform a broken link check regularly

Despite the implementation of either or both of the strategies above, I highly recommend performing regular broken link checks. We do this once per month on all of the sites we manage. While many of the sites show no broken links month to month, it's not uncommon to uncover new broken links with each monthly check. Programs such as Xenu make checking for broken links relatively easy.

Xenu Broken Links

But just checking for broken links doesn't mean anything if you don't get in there and fix them too!

By using these three strategies you'll pretty much have all your bases covered regarding broken links. This will ensure that you keep your site free of these errors, but when links are outside of your control, you can keep visitors on and engaged with your site and moving closer to that conversion.




Comments (4)

Great advice. I've tried to drum in the value of a custom 404 to the development team. I think I'm wearing them down. Typos are common place so you really don't want to lose out on potential traffic just because - somone didnt git the UTL rtight! :)

I love Xenu and consider it one of the essential tools in my web developer toolbelt. But note that it's only for Windows and includes a randomly selected anti-Scientology (you might have guessed a connection from the Xenu name) or anti-Microsoft ad in the reports. For Mac and Linux users, Scientologists & citizens of Redmond, you can use the W3C's online link checker:
http://validator.w3.org/checklink

For redirects in .htaccess files, there's much, much, MUCH more you can do besides just writing out individual page-by-page redirects using the "Redirect" syntax, which is tedious. Using mod_rewrite, you can harness the power of regular expressions to write rules rules that will redirect your entire site, individual folders, certain file extensions (e.g. .php -> .html), certain filename patterns, or just about any other wacky idea you can come up with. Working with mod_rewrite is, as somebody once said, like black magic, but if you can figure it out, you'd be amazed what you can do.

Check out this article for some ideas and tutorials:
http://corz.org/serv/tricks/htaccess2.php

Interestingly (regarding the title of this article), that site also has a cracking 404 script. Not only does it automatically search for broken links, it can redirect the user transparently, even sending proper headers and all. I'm playing with it right now. Link. Test.

There's even a fuzzy matching capability for catching typos.

I've try to find broken link in my blog but how I'll fix it....

Leave a comment

 



If you'd prefer, you can also subscribe without commenting by submitting your email address here:



About the Author

Stoney deGeyter founded Pole Position Marketing in 1998 working from a home office and has since turned it into a leading search engine marketing business with a small team of seasoned Reno SEO and marketing experts. Stoney pioneered the concept of Destination Search Engine Marketing which is the driving philosophy on how Pole Position marketing helps their clients expand their online presence and improve online conversion rates.

Stoney is a moderator at the Small Business Ideas Forum, a regular contributor to the Search Engine Guide blog and has a monthly column on Search Engine Land. He posts his SEO and business insights at the E-Marketing Performance blog where you can also find his e-books: E-Marketing Performance: Effective Strategies for Building, Optimizing and Marketing your Website Online and Keyword Research and Selection: The Definitive Guide to Gathering, Sorting and Organizing your Keywords into a High-Performance SEO Campaign.

Stoney is married with five wonderful children and, if away from the computer long enough, enjoys riding his dirt bike, watching DVDs, reading books and spending quality and quantity time with the family.

Stoney deGeyter founded Pole Position Marketing in 1998 working from a home office and has since turned it into a leading search engine marketing business with a small team of seasoned Reno SEO and marketing experts. Stoney pioneered the concept of Destination Search Engine Marketing which is the driving philosophy on how Pole Position marketing helps their clients expand their online presence and improve online conversion rates.

Stoney is a moderator at the Small Business Ideas Forum, a regular contributor to the Search Engine Guide blog and has a monthly column on Search Engine Land. He posts his SEO and business insights at the E-Marketing Performance blog where you can also find his e-books: E-Marketing Performance: Effective Strategies for Building, Optimizing and Marketing your Website Online and Keyword Research and Selection: The Definitive Guide to Gathering, Sorting and Organizing your Keywords into a High-Performance SEO Campaign.

Stoney is married with five wonderful children and, if away from the computer long enough, enjoys riding his dirt bike, watching DVDs, reading books and spending quality and quantity time with the family.