Hi Danielle,
Yes, Apache will go right back to the DocumentRoot folder for the server when looking for .htaccess files, not just the current site/subdomain.. so a main site's .htaccess file will indeed be parsed and run, affecting what happens with a subdomain whose files are placed in a subdirectory of the main site.
So if you have a rule to redirect from non www. to www. or vice versa, that'll more than likely mess up your subdomain.
So you need to change this rewrite rule.
If the subdomain is new.mysite.com, adding the following condition to the "www. rule" should stop the "main"/"root" site's rewrite rule from messing things up:
E.g., it might adjust a rule as follows:Code:# Don't mess with subdirectory new.mysite.com RewriteCond %{HTTP_HOST} !^new\.mysite\.com$
Hope that helps!Code:RewriteCond %{HTTP_HOST} !^www\.mysite\.com$ # Don't mess with subdirectory new.mysite.com RewriteCond %{HTTP_HOST} !^new\.mysite\.com$ RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
Please note that this obviously isn't a Ceon URI Mapping question so if you're still having trouble it's best to post in a new thread.
All the best..
Conor
ceon



Reply With Quote
