Hi Danielle,

Originally Posted by
Danielle
because of the .htaccess rules on the root domain, the subdomain just redirects to the root.
Can you tell me what I need to put in there to stop it from rewriting the subdomain?
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:
Code:
# Don't mess with subdirectory new.mysite.com
RewriteCond %{HTTP_HOST} !^new\.mysite\.com$
E.g., it might adjust a rule as follows:
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]
Hope that helps!
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