| How do I customise my '404 page not found' errors? |
|
As you have probably seen through other faq questions the key to most webpage customisations is with your .htaccess file, here is a simple step by step guide... Create a directory called 'errorpages' in your 'web' directory (it can be called whatever you want but this name works well as an example). There are a number of error codes that you can make errorpages for however in practice you only need a few. HTTP status codes are divided into five groups...
...you don't need to create errorpages for any of the 1xx, 2xx or 3xx codes as pages have been returned properly. In practice you should only really need to make pages for the codes...
A full list of codes can be found in RFC 2616 should you wish to investigate. Create HTML files for each of your errorpages and put in your errorpages directory. If you haven't already got one create a '.htaccess' file in your web directory and add a line for each errorpage you created such as...
...(remember to ftp your .htaccess file as ascii) and you should be done. Try it by calling a page you know doesn't exist. |
||