Answer the question
In order to leave comments, you need to log in
How to write a rule for htaccess?
Hello!
On the site, all requests are redirected to one file
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ ./index.php?path=$1 [L,QSA]
Answer the question
In order to leave comments, you need to log in
RewriteEngine On
RewriteBase /
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php\?path\=$1 [L,QSA]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question