PDA

View Full Version : Custom Error Documents For A Subdomain?



scottnj
07-06-2005, 06:54 PM
How do I get custom error documents to work with subdomains?

I have a subdomain private.mysite.com and I want a custom 401 page.

I tried putting "ErrorDocument 401 /401.html" in both "public_html/.htaccess" and/or "public_html/private/.htacess".

If I try mysite.com/private it works. :)
If I try private.mysite.com it doesn't work. :(

Rich
07-07-2005, 08:08 AM
I haven't tried this in a while, but you may also need those files in private.mysite.com

scottnj
07-07-2005, 12:12 PM
right now I have "ErrorDocument 401 /401.html" in both "public_html/.htaccess" and "public_html/private/.htaccess".
I also have the files "public_html/401.html" and "public_html/private/401.html" created.

But still:
If I try mysite.com/private it works.
If I try private.mysite.com it doesn't work.

How do I get this to work???