I would like to redirect my root domain to another site, but leave the subdomains in tact.
so redirect mydomain.com to mydomain.com/directory, but leave alone subdomain.mydomain.com.
Will this work? or will it also redirect subdomains.
RewriteEngine on RewriteCond %{HTTP_HOST} ^mydomain.com$ [NC] RewriteRule ^(.*)$ http://example.com/directory$1 [R=301,L]