htaccess and custom error docs
Posted by: user919
Posted on: 2003-07-10 11:32:00
Hey there, I have a site where I'm using custom error pages using the following code in my htaccess file in the web root:
Options -indexes
ErrorDocument 404 /oops/404.php
ErrorDocument 500 /oops/500.php
ErrorDocument 401 /oops/401.php
ErrorDocument 403 /oops/403.php
bad url:
http://disk919.com/buttcrack/
Actually, I have this on 3 sites, 1 works, the other 2 do not. one site has a slight variation (essentially same tho):
Options -indexes
ErrorDocument 400 /error.php?code=400
ErrorDocument 401 /error.php?code=401
ErrorDocument 403 /error.php?code=403
ErrorDocument 404 /error.php?code=404
ErrorDocument 500 /error.php?code=500
ErrorDocument 501 /error.php?code=501
ErrorDocument 502 /error.php?code=502
ErrorDocument 503 /error.php?code=503
bad url:
http://andredion.com/buttcrack/
I have a site that's using the EXACT same .htaccess file as the first example and it's working fine. I even checked permissions on the directories and files involved and made them match the one that is working (shouldn't matter tho right?).
To top things off, the friend at anredion.com mailed support and got the following response:
In reply to:
Looks like its working just fine for me.. I dont see our default error
docs when i try to access pages that do not exist.. i just see
Error 403: Forbidden
should be getting a 404 error there from the description. Why would support be able to see custom error pages, although the wrong one, when noone else in Canad or the US can?
Little confused here =)
jason