Pawel Szulencki Search Engine Optimization/Marketing blog.
Welcome back! Thanks for sticking by.
10 things a Good 404 Error Page Should Contain:
What is 404 (File Not Found) page anyway
404 page is a page displayed by web browser by default when a user tries to access a site that does not exist on a server. For example if you mistype an URL, the site will not be found and your web browser will display the 404 (File not found) page.
404 is a HTTP status code [status code definitions, document RFC 2616 of W3C] indicating that the client was able to communicate with the server but either the server could not find what was requested, or it was configured not to fulfill the request and did not reveal the reason why - from Wikipedia.
It generally means that there is no file on a server that fits your request and no page can be displayed.
Why 404 error occurs?
There are several reasons why you encountered an 404 (File not found) error:
Creating custom 404 page
The standard 404 page doesn’t look to inviting, does it? And your customers will think the same. Its not good. With that page the chances that a client will stay at your website are very, very small.
To change that you need to create your own, custom 404 error page in order to keep clients on your website.
How to setup custom error page
When you have prepared your custom 404 error page according to the guide above you need to upload it to your serve and give instructions to the server to display your custom 404 error page instead of default one.
To display your custom error page instead of default one insert the following code to your .htaccess file:
ErrorDocument 404 /AnErrorPage.html
and change the AnErrorPage.html with name and extension of your custom error page. Also don’t forget to put the correct path to the page on your server. In the case above i assume you place your error page in root folder together with your .htaccess file.
Test you new custom error page to see if it works.
Now if anything goes wrong there are better chance that a user will stay at your website instead of leaving it and never coming back.
Congratulations, you just made your site more user-friendly!
Sample custom 404 error pages:
BBC - http://www.bbc.co.uk/anerrorpage.html
CNN - http://www.cnn.com/anerrorpage.html
Apple - http://www.apple.com/anerrorpage.html
OrangeCoat - http://www.orangecoat.com/a-404-page.html
[Update, September 18, 2008] Should you put analytics codes on 404 page to track it? - thats one of the key phrases [not exact] a user searched for in Google and entered this site. Its a good question actually.
Putting an analytics (any kind of analytics software, not only Google Analytics) onto a 404 error page have advantages. You will be able to check how many times a user encountered a 404 page, from where, where did the user go afterwards, how much time did the user spend on the site. It’s all great information to have.
With those information you are able to see if your 404 page is working properly, meaning is it keeping users on your site or are they leaving your site. If they leave your site immediately, check why and fix it.
You will also be able to check why a user encountered your 404 page. If there is a broken link within your site you can track it and fix it.
Putting an analytics code onto a 404 error page is a good way to improve its goals and help satisfy your visitors and help improve your site usability.
Another good way is putting a special prepared code into your 404 page in that way to receive an email each time a user encountered your 404 page. The script should also send you information about referring URL that caused that error and generate custom message for each user explaining what happened.
Together with analytics software it should work great giving you all the information you may need.
Sphere: Related ContentPawel Szulencki is a SEO (Search Engine Optimization) and Marketing certified specialist who is interested in organic SEO, paid campaigns (PPC) and Social Media Marketing channels. (Read more)
lucio dias ribeiro (3 comments.)
September 17th, 2008 at 2:13 am
Hi Pawel, great approach on your post.
Its great to see someone writing complete post from top to bottom, explaining why and how to do it.
Post has been sphunn (www dot sphinn dot com)
Lucio Ribeiro
lucio dias ribeiros last blog post..How to use Social Networking for your business
Pawel Szulencki (171 comments.)
September 17th, 2008 at 1:26 pm
@lucio dias ribeiro: Thanks Lucio. Im glad you liked this post. Check out my other posts, you might be interested in them as well.
lucio dias ribeiro (3 comments.)
September 18th, 2008 at 3:05 am
Hi Pawel yeap I’ll be hanging around for more time,
thanks mate
Lucio Ribeiro
lucio dias ribeiros last blog post..How to use Social Networking for your business
Information on gifts (3 comments.)
March 13th, 2009 at 3:07 pm
Really a great post on custom error 404 page. It gives very useful information that is important in SEO….
Thanks
Information on giftss last blog post..Unique christmas presents
Web Designing Company(new comment)
August 26th, 2009 at 3:46 pm
Yes, creating 404 error page is really helpful because it redirected your visitors to your site
Web Designing Company´s last blog ..Services that are provided by Compusoft Technologies
taras(new comment)
January 10th, 2010 at 12:52 am
Custom 404 page is indeed very useful and can cheer the user up a bit. But the user would be far more happy if it wouldn’t appear at all