PDA

View Full Version : Custom Error Pages Help (.htaccess)


MLWJ
04-11-2001, 01:26 AM
Hi, I have Custom Error Pages set up on my main site, but my friend uses some of my webspace on a subdomain and I was wondering if it is possible for him to have his own Custom Error Pages by putting a .htaccess file into the subdomain directory. Would this work? If so, would you mind telling me what to put in the .htaccess file for a 404 Error. If not, is there any possible way this could work some other way? Thanks in advance for any help.

mark_olson
04-11-2001, 05:26 PM
I believe that this will work for subdomains.
.htaccess
~
ErrorDocument 400 /subdomain/400.html
ErrorDocument 401 /subdomain/401.html
ErrorDocument 403 /subdomain/403.html
ErrorDocument 404 /subdomain/404.html
ErrorDocument 500 /subdomain/500.html
~
naturaly you can pick and choose what errors to use.