Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

404 errors

Status
Not open for further replies.

aldumil

Programmer
Sep 3, 2001
40
JP
I have set my 404 error page for my main domain name....but I was wondering, can I set a differnt 404 error page for differnet subdomains? so as to tailor it for each subdomain?any help would be appreciated
 
If each "sub-domain" is a virtual host then you can put the errordocument directive in each of the virtual hosts


<VirtualHost *>
ServerName DocumentRoot / ErrorDocument 404 /Lame_excuses/not_found.html
</VirtualHost>

You can also put ErrorDocument directive in the .htaccess if the Fileinfo override is allowed.

And, you should be able to set the ErrorDocument inside the <Location> directive ... at least I would think you should be able to, but I am not at my servers to test this ... but in theory your should be able to. Setting it inside the <Location> directive means you could set up different error documents for each folder inside your web share.


Hope this helped
 
thanks I think I got it almost figured out
 
I take that back I am thought I had and am now back to being hopelessly lost. Does anyone have any help/ideas for how to get a subdomain to have it own 404 error page?????
 
When you say sub-domain ... do you mean Virtual Hosts?
 
maybe.......I don't know. i.e. my adress is aldumil.com and I have a 404 error page for that can I make it so punk.aldumil.com has its own to?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top