.htaccess question
I use a virtual host and cannot set public as the root directory.
So I set up the. Htaccess file
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L]
</IfModule>
but, the /public/assets file cannot be accessed.
Try one of the following options:
First:
Second:
The third:
But it's better to set at the Apache level
stackoverflow.com/questions/24620505/laravel-htaccess
stackoverflow.com/questions/33008157/htaccess-public-folder-rewrite-rule
stackoverflow.com/questions/38040502/how-do-you-redirect-all-request-to-public-folder-in-laravel-5