topherg
topherg

Reputation: 4303

Force htaccess to redirect for specific requests

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

Answers (1)

Choker
Choker

Reputation: 875

Add another rule set:

RewriteCond %{REQUEST_URI} /sys-admin*$

RewriteRule ^(.*[^/])/?$ /index.php?p=$1 [L,QSA]

Upvotes: 1

Related Questions