I can't find htaccess for root folder. My page is now accessible trough www.example.com/public
when I put:
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
in root htaccess, css, js files are correcty requested but when I request website error is shown :
NotFoundHttpException in RouteCollection.php line 145:
I want my page accesible trought: www.example.com
Puting public folder content in www server folder is not solution because I wan't flexibility to have more laravel websites on one domain.
Try setting the RewriteBase to / in you public .htaccess file.
But its a bad idea to use this approach, it would be much easier to just let the domain link to the public folder (via setting or via symlink). Multiple installations per domain could be solved through the use of subdomains.