Answer the question
In order to leave comments, you need to log in
How to redirect all requests to index.php (.htaccess)?
It is necessary that all requests that come to the site are redirected to index.php
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
DirectoryIndex index.php
RewriteRule ^(.*)$ index.php [L]
Answer the question
In order to leave comments, you need to log in
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ ./index.php?route=$1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question