php laravel remove public from url laravel 6 works for aws ec2 subfolder

Solutions on MaxInterview for php laravel remove public from url laravel 6 works for aws ec2 subfolder by the best coders in the world

showing results for - "php laravel remove public from url laravel 6 works for aws ec2 subfolder"
Niclas
19 Nov 2019
1server.php
2INTO
3index.php
4  
5  .htaccess 
6Options -MultiViews -Indexes
7RewriteEngine On
8# Handle Authorization Header
9RewriteCond %{HTTP:Authorization} .
10RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11# Redirect Trailing Slashes If Not A Folder...
12RewriteCond %{REQUEST_FILENAME} !-d
13RewriteCond %{REQUEST_URI} (.+)/$
14RewriteRule ^ %1 [L,R=301]
15# Handle Front Controller...
16RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC]
17RewriteCond %{REQUEST_FILENAME} !-d
18RewriteCond %{REQUEST_FILENAME} !-f
19RewriteRule ^ index.php [L]
20RewriteCond %{REQUEST_FILENAME} !-d
21RewriteCond %{REQUEST_FILENAME} !-f
22RewriteCond %{REQUEST_URI} !^/public/
23RewriteRule ^(css|js|images)/(.*)$ public/$1/$2 [L,NC]
similar questions