Не могу настроить rewrite на нужную папку
Добавлено: Ср авг 11, 2021 10:45 pm
The problem is, in the root of the directory I created a webroot folder and a .htaccess file, inside the webroot there is index.php and another .htaccess, I wrote it in the root .htacess -> {
RewriteEngine On
RewriteRule ^ (. *) $ Webroot / $ 1 [L, QSA]
}
and in the webroot .htaccess folder -> {
RewriteEngine On
RewriteCond% {REQUEST_FILENAME}! -d
RewriteCond% {REQUEST_FILENAME}! -f
RewriteRule ^. * $ index.php [L, QSA]
}
nothing works, writes 403, no type index.php or index.html, although I tried everything on my localhost
RewriteEngine On
RewriteRule ^ (. *) $ Webroot / $ 1 [L, QSA]
}
and in the webroot .htaccess folder -> {
RewriteEngine On
RewriteCond% {REQUEST_FILENAME}! -d
RewriteCond% {REQUEST_FILENAME}! -f
RewriteRule ^. * $ index.php [L, QSA]
}
nothing works, writes 403, no type index.php or index.html, although I tried everything on my localhost