Web Hosting Talk







View Full Version : Custom Error Pages


Cael
05-31-2001, 02:37 AM
How can I enable this for one of my clients?

SI-Chris
05-31-2001, 03:01 AM
Create a .htaccess file in the client's /web directory that looks like this:

ErrorDocument 401 http://www.yoursite.com/authorizationRequired.htm
ErrorDocument 403 http://www.yoursite.com/forbidden.htm
ErrorDocument 404 http://www.yoursite.com/fileNotFound.htm

Cael
05-31-2001, 04:52 AM
Thanks man...

adnbox
06-01-2001, 02:04 AM
Hi..
I tried to put on my /web directory a .htaccess file with this code :

ErrorDocument 401 http://www.mysite.com/401.html
ErrorDocument 403 http://www.mysite.com/403.html
ErrorDocument 404 http://www.mysite.com/404.html

but when I want to enter to my site appeasr an error of configuration... and I can't enter :(

Somebody can help me?

Regards
Fabian

Cael
06-01-2001, 03:36 AM
Maybe posting your URL might helps a little bit. I advise that you start a new thread for this.

Chicken
06-01-2001, 09:16 PM
I get the feeling this thread would loop nicely into this one:
http://www.webhostingtalk.com/showthread.php?&threadid=11771