Hello,
I have maindomain.com addon1.com addon2.com addon3.com
The problem is maindomain's htaccess is affecting the addon domains. I want the add on domains to have their own htaccess. The addon domains should not be influenced by main domain's htaccess
I was looking at an old post here: webmasterworld.com/apache/3139428.htm
and had some questions about it:
If I implement this method:
RewriteCond %{HTTP_HOST} ^(www\.)?addon_domain\.com
RewriteRule .* - [L]
do I put these 2 lines at the beginning of main domain's htaccess for every add on domain?
Like this:
RewriteCond %{HTTP_HOST} ^(www\.)?addon1\.com
RewriteRule .* - [L]
RewriteCond %{HTTP_HOST} ^(www\.)?addon2\.com
RewriteRule .* - [L]
RewriteCond %{HTTP_HOST} ^(www\.)?addon3\.com
RewriteRule .* - [L]
Or like this
RewriteCond %{HTTP_HOST} ^(www\.)?addon1\.com
RewriteCond %{HTTP_HOST} ^(www\.)?addon2\.com
RewriteCond %{HTTP_HOST} ^(www\.)?addon3\.com
RewriteRule .* - [L]
In the same post, Mr. Jim says you could also forget about the above and put the following code in the "mod_options" folder of each and every add on domain. I dont know what mod_options folder is, how do I access that?
do I just place the following at the beginning of each add on domain's htaccess, and that's it? or is there more to it?
RewriteOptions none
RewriteOptions Inherit