homepage Welcome to WebmasterWorld Guest from 54.167.249.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
.htaccess question as to addon domains
Does it work for addon domains
MarieC




msg:1497912
 5:44 pm on Dec 7, 2002 (gmt 0)

Hi. I have an .htaccess file for my main site. I've now added another web site to my main site as an addon domain. Will my .htaccess file work for the additional domain? If not, is it okay to do another .htaccess in the subdirectory that contains the additional domain?

I apologize if this makes no sense. I'm still new to this. I've looked around for the answers, but so far, no luck. And, I hope I'm posting this in the correct forum. Thank you.

 

andreasfriedrich




msg:1497913
 5:57 pm on Dec 7, 2002 (gmt 0)

You may want to read this article on how Apache locates and merges .htaccess files [apache-server.com].

If both domains use the same directory as their root directory then the .htaccess will apply to both domains. If the addon domain uses a subdirectory of the main domains root directory as its own root and the main domainīs htaccess file is in that domainīs root directory then Apache will first read the main domainīs htaccess file and then any htaccess files in your addon domainīs subdirectory.

Andreas

MarieC




msg:1497914
 6:20 pm on Dec 7, 2002 (gmt 0)

Thank you for such a quick answer, Andreas. That's just what I needed to know. And thank you for the article, too. Marie

andreasfriedrich




msg:1497915
 6:21 pm on Dec 7, 2002 (gmt 0)

Youīre most welcome, Marie.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
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