Reputation: 35
I have .htaccess like this:
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L]
but I want to skip these rules if url contains e.g. admin, administration words just after domain name (eg. domain.com/admin/ or domain.com/administration/)
Upvotes: 0
Views: 2926
Reputation: 2113
Add the following conditions before your rules:
RewriteCond %{REQUEST_URI} !^/admin/
RewriteCond %{REQUEST_URI} !^/administration/
Upvotes: 1