Advanced 404 Pages

Written by Lauri Harpf


In a previous article, I discussedrepparttar advantages of using a customized 404 error page on your site and gave instructions on how to create one. As I explained back then, these pages are highly useful because they enable you to benefit from traffic that would otherwise be lost. They however do have one dark side that can make maintaining your site significantly more difficult than what it has been before.

What is this problem I'm talking about? Well, it is quite simple. Usually when a server encounters a 404 error, it recordsrepparttar 134571 details aboutrepparttar 134572 event into its log file. Should you suddenly notice thatrepparttar 134573 log shows multiple 404 errors due to a page named "abutme.html" not being found, you can deduct that you've probably accidentally linked to "abutme.html" somewhere on your pages instead of usingrepparttar 134574 correct filename "aboutme.html". As you can see fromrepparttar 134575 above,repparttar 134576 functionality offered by log files makes them a great help in tracking down such simple mistakes and enables you to keep your site relatively free of in-site broken links.

However, if you happen to have replacedrepparttar 134577 standard 404 error with your own HTML 404 error page, you can't utilize this useful feature. Yes, you will still see that a 404 error has occurred, but you won't get any further details that would help you figure out what exactly happened. Finding and fixing these errors becomes nearly impossible, causing them to pile up over time and deterioraterepparttar 134578 professional image of your site. Now you're facingrepparttar 134579 tough choice of either showing your visitors a very unfriendly error message that drives them away or acceptingrepparttar 134580 fact that your stylish custom 404 error page will become an all too familiar sight to those who click around your site.

All hope is not lost ====================

After readingrepparttar 134581 above, you must be feeling pretty down. I sure know I did after having installed my own 404 page only to notice that I had corrected one problem, but caused another one while doing it. Still, there is a solution to every difficult situation and this one is no exception. If you want to keep your 404 page and still get informed when you mess things up and create a broken link, you'll be pleased to hear that I happen to have justrepparttar 134582 thing forrepparttar 134583 job. Before we begin, please take into account that in order to use this fix, your host has to be running Apache with support for .htaccess files, Server Side Includes (SSI) and CGI. Contact your technical support for information on whether you have access to these valuable features or not.

Without further ado, let's roll up our sleeves and get to work. The first thing you will need is a CGI script that will logrepparttar 134584 errors and let you know about them. There are several ones out there that you can use, but I personally prefer Matrix Vault's free 404 Helper that can be found at http://www.pixelwarehouse.com/cgi/404helper.shtml . Downloadrepparttar 134585 source code to your hard drive and open it in a text editor. You can get free editors fromrepparttar 134586 Net, butrepparttar 134587 old MS-DOS Edit supplied with just about every version of Windows will do just fine. To run Edit, go to Start, Run, type "edit" withoutrepparttar 134588 quotes intorepparttar 134589 box and click OK.

Before you start editingrepparttar 134590 file, you'll need to know where your host has installedrepparttar 134591 Perl interpreter and Sendmail. Once you have figured it out, check ifrepparttar 134592 paths used inrepparttar 134593 CGI script match those your host uses. The Perl interpreter's location is set to /usr/bin/perl inrepparttar 134594 first row andrepparttar 134595 location of Sendmail is set to /usr/lib/sendmail inrepparttar 134596 21st row. Make changes, if necessary.

After you have made sure thatrepparttar 134597 paths are correct, modifyrepparttar 134598 rest ofrepparttar 134599 script to suit your needs. Be sure to replacerepparttar 134600 E-mail address inrepparttar 134601 $email field withrepparttar 134602 one you wantrepparttar 134603 error report to be sent to. You might also wish to use a smaller value inrepparttar 134604 $mailon field thanrepparttar 134605 default of 10, as it can take quite a while for a small site to generate enough 404 errors to fill up a 10K log. I suggest using a value of 1 or 2 atrepparttar 134606 beginning and raising it later if you feel that you are receivingrepparttar 134607 error reports more often than you'd like to.

10 Covert Ways To Make People Visit Longer!

Written by Larry Dotson


1. Offer a free ebook that's published right on your web site. They would have to stay at your web site to read it.

2. Give your visitors a different free bonus for each link they click-through on your web site. Example: "If you click on this link you'll get a FREE course!"

3. Make your content into a story format. They will want to keep reading to find out what happens atrepparttar end ofrepparttar 134570 story.

4. Offer a search option on your web site. People will stay longer because it gives themrepparttar 134571 option of searching through your web site using keywords.

5. Provide a chat room on your web site. They will want to chat with other people that are interested inrepparttar 134572 subject.

6. Write your content so it attracts their five senses. Use plenty of adjectives. The will stay focused on your web site and block out other distractions.

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use