M
M
Mors Clamor2021-12-05 12:14:28
htaccess
Mors Clamor, 2021-12-05 12:14:28

How to set up a redirect to a subdirectory?

Good afternoon! I can't figure out why it doesn't work. The framework is in the system subfolder, the files of the rest of the site are in the root. How to configure htaccess correctly? Wrote like this:

RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ /system/index.php?path=$1 [NC,L,QSA]


And everything would be fine, but there is no redirect from the main site.ru page . How can I fix it? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question