View Single Post
 
Old Nov 12, 2001, 06:22 AM
freddy freddy is offline
Member
 
Member Since: Oct 2001
Location: USA
Posts: 40
Hi Gang:

Some of you may be aware of this. I just learned how yesterday. You may customize the 'error' page that people get for:

400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
500 Internal Server Error

What worked for me should work for most. Simply create a customized error page called AnythingYouWant.htm ( mine is at www.seemyad.com/info/error.htm ). Then create a file called ' .htaccess '. Now In your ' .htaccess ' file put in...

ErrorDocument 400 /AnythingYouWant.htm
ErrorDocument 404 /AnythingYouWant.htm
ErrorDocument 500 /AnythingYouWant.htm

...and so on. NOW, place the .htaccess file inside your root directory - aka - if it were a .htm page it would be viewed at www.yourdomain.com/.htaccess.htm . That's it!

You ALSO have the option of making a seperate page for each error code ' AnythingYouWant2 ' ' AnythingYouWant3 ' AND you can place the error pages whereever you please as long as it is addressed properly - aka -

ErrorDocument 404 /pages/and/stuff/AnythingYouWant.htm

I hope this helps someone. I am too lazy to make a seperate page for each error code. ;-)

freddy

Trust your ad to See My Ad.Com - www.seemyad.com
__________________
Trust your ad to See My Ad.Com - www.seemyad.com