Answer the question
In order to leave comments, you need to log in
How to make the correct redirect to the public folder?
I do it like this:
RewriteEngine on
RewriteBase /auth-laravel/ #это у меня относительная директория, прямой путь до корня где лежит ларавел /var/www/html/auth-laravel, сайт доступен через localhost/auth-laravel/
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
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