Laravel - как сделать редирект запросов из корня в папку public
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Laravel - как сделать редирект запросов из корня в папку public
Добавить в рутовский .htaccess строки с редиректом:
RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L]