|
HOME articles tutorials tool directory about |
|
|||||
|
|
Custom Error Pages - Page 2
Using a plain text editor such as notepad, open a blank file. Put the following in it:
This tells your server to display the page /404error.html whenever a requested page is not found. Note that this must all be on one line, and the text is case sensitive. If you type errordocument instead of ErrorDocument, it will not work.
If you named your error page something other than 404error.html, or put it somewhere other than the root directory, modify the above accordingly. For example, if you called your file myerrorpage.html and put it in a subdirectory named errors, your htaccess.txt file would look like this:
Step 4: Upload the .htaccess File
Upload the file you created (htaccess.txt) to the root directory of your Web site. Using your ftp program, rename it to .htaccess
Step 5: Test
In the unlikely event you get a 500 internal server error instead of your not found page, don't panic, it just means there is something wrong with the format of the .htaccess file. Getting rid of the file will get your site working again. Follow these emergency instructions for accessing hidden files via ftp.
###
|
|
||||
|
HOME articles tutorials tool directory about (c) copyright 2000-2010 Anventure. All
Rights Reserved.
|
||||||