[Laravel] Configure PHP routes and Apache .htaccess to work into a folder
Hi All,
now I configured Laravel to work into the laravel-5.6-test folder:
but the second link does not work (404 Page not found) :(
This is the .htaccess in the folder:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /laravel-5.6-test
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
and this is routes/web.php
PHP Code:
Route::get('/laravel-5.6-test', function () {
return view('welcome');
});
Route::get('/laravel-5.6-test/test', function () {
return 'TEST';
});