Answer the question
In order to leave comments, you need to log in
How to compose (configure) RewriteCond for .htaccess?
Good day everyone!
Please help me compose a RewriteCond for .htaccess
, how to do it so that at the end of the address index.php is removed (if it exists), example:
sitename.ru/.../index.php >> sitename.ru/.../
sitename.ru/index.php >> sitename.ru
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question