homepage Welcome to WebmasterWorld Guest from 54.226.166.224
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
.htaccess ErrorDocument for Multiple Domains on One Server
webstuck




msg:4301902
 2:50 pm on Apr 21, 2011 (gmt 0)

I have one server that hosts many different websites. So, the path structure is like this:

Domain1
Domain1\Domain2
Domain1\Domain3
etc.

I am trying to set up a .htaccess file in the Domain 1 folder that will handle ErrorDocument redirecting for all the domains. This way if I add anything to my .htaccess file then I don't have to copy it to every domain. I currently have this line in my .htaccess file:

ErrorDocument 404 /error.htm

This works for Domain 1 which contains the error.htm file but not for the other domains. Is there a way to code this? I see you can put a url instead of a path to the error file but a number of online sites say that really isn't a good idea.

 

phranque




msg:4302419
 10:47 am on Apr 22, 2011 (gmt 0)

each domain will only be able to see the .htaccess file(s) in its root directory and subdirectories.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved