Answer the question
In order to leave comments, you need to log in
How to make a redirect of any level of nesting to the root of the site?
Good time!
I already googled my fingers into the blood, but I did not find an answer specifically on my topic.
There is a .htaccess file with the following content:
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URL} ^/.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L,QSA]
</IfModule>
Answer the question
In order to leave comments, you need to log in
https://stackoverflow.com/questions/1427721/how-to...
How about the following code:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question