I have all requests to domain.com AND www.domain.com being redirected to the index.php file (using the code below). It's working fine, however... I have clients.domain.com setup on a completely different server. I DO NOT want any redirect rules to apply to this subdomain, but right now, all requests for clients.domain.com are also being redirected to the index.php file on the server where domain.com resides. Here is my .htaccess code: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/index\.php$ RewriteRule ^(.*)$ /index.php [L] Code (markup): Any help is greatly appreciated. Thanks guys!
you should add another RewriteCond as in: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^clients.domain.com$ [NC] RewriteCond %{REQUEST_URI} !^/index\.php$ RewriteRule ^(.*)$ /index.php [L] Code (markup):