I'm trying to install laravel
into a subfolder within public_html
, within the folder where the application created the following .htaccess
.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
But now when I access through the URL I only get the error;
NotFoundHttpException in RouteCollection.php line 161:
I checked my route file if the path was correct and this one.
Route::get('/', ['as' => 'dashboard.login', function() {
return view('dashboard.auth.login');
}]);
I got the "error", I can only access the application if I put /public
after the domain, but I'm using this .htaccess
that I commented above and it should remove this "public" correct?