vendredi 10 février 2017

Remove public from URL Laravel 5.3 on shared hosting

Vote count: 0

I have Laravel 5.3 project on shared hosting located at the following address:

http://ift.tt/2kPiF1r

How to remove "public" from URL?

http://ift.tt/2l0Luua

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ public/$1 [L]

http://ift.tt/2kPxbqd

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

asked 41 secs ago

Let's block ads! (Why?)



Remove public from URL Laravel 5.3 on shared hosting

Aucun commentaire:

Enregistrer un commentaire