R
R
Romi2021-05-24 20:56:09
htaccess
Romi, 2021-05-24 20:56:09

How to add an exception for a folder and files in it in .htaccess with a configured redirect to index.php?

Here is the .htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.php [L]


what to attribute here so that it does not direct when accessing, say, /test/

?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2021-05-24
@dodo512

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/test/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.php [L]

Or
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.php [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question