This is the free project:
You have to configure two .htaccess files, one here /L8x
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteCond %{HTTPS} =off
RewriteRule ^ https://laravista.altervista.org%{REQUEST_URI} [L,R=301]
RewriteBase /L8x
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
and one here /L8x/public
Code:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
RewriteBase /L8x
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
and using the prefix here /L8x/routes/web.php
PHP Code:
Route::get('/L8x', function () {
return view('welcome');
});
WORKS!!