Forum Moderators: phranque
I am trying to redirect the root of my domain except for my subdomain. I thought this would work but its not. It is redirecting my subdomain also. The code is in my .htaccess in my default http directory
RedirectMatch temp ^/$ [thenewsite.net...]
Can anybody tell me what I am missing or forgetting?
Thanks in advance...
I'd suggest that you use mod_rewrite instead of mod_alias, and use a RewriteCond [httpd.apache.org] to test the HTTP_HOST server variable, so that the rule is invoked only for requests to your main domain's root document and not for requests to your subdomain.
Jim