taith Posted January 11, 2013 Share Posted January 11, 2013 hello, i have the following rewrite rules, which work wonderfully, however it is overpowering any subdomains i create... does anyone know the rewritecond so that it will not continue with the rule if there is a subdomain(excluding www)? RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} !staging/$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ site.php?s=$1 [L] basically url.com and www.url.com <-- rewrote, and no others... Quote Link to comment https://forums.phpfreaks.com/topic/272990-strict-domain-rewrite-conditions/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.