Jump to content

strict domain rewrite conditions


taith

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.