This is the free project:
You have to configure two .htaccess files, one here /L8x
and one here /L8x/publicCode:<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 using the prefix here /L8x/routes/web.phpCode:<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>
WORKS!!PHP Code:Route::get('/L8x', function () {
return view('welcome');
});

2Likes
LinkBack URL
About LinkBacks


