Answer the question
In order to leave comments, you need to log in
How to write a rule in htaccess so that all paths lead to index?
The essence of the trouble (I did it 50 times, today I’m stupid to eerily):
There is a directory structure, for example:
/index.php
/.htaccess
/backend/ ....
/frontend/ ....
/images/ ....
etc. d.
My htaccess has the following theme:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]
</IfModule>
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