This is my folder structure for Laravel 5.2
-laravel --app --bootstrap --config ... Under the laravel folder that is root of Laravel, I added an .htaccess file with following code:
RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] Now when I open project in browser I get the error:
Sorry, the page you are looking for could not be found. "NotFoundHttpException in RouteCollection.php line 161:"
I am using XAMPP. Why I am getting this error? How can I remove public from the URL using this method?