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... Link to comment https://forums.phpfreaks.com/topic/272990-strict-domain-rewrite-conditions/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.