Reputation: 4303
I have the htaccess
file
Options -Indexes +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*[^/])/?$ /index.php?p=$1 [L,QSA]
How can this be changed to force requests to /sys-admin
to be redirected into index.php
even if it does exist (file or directory)?
Upvotes: 0
Views: 67
Reputation: 875
Add another rule set:
RewriteCond %{REQUEST_URI} /sys-admin*$
RewriteRule ^(.*[^/])/?$ /index.php?p=$1 [L,QSA]
Upvotes: 1