Answers for "removing public from laravel url"

PHP
5

laravel remove public from url

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]

RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/$1 

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php
Posted by: Guest on September-03-2020
2

Remove “/public” from Laravel route

Rename server.php in your Laravel root folder to index.php
Copy the .htaccess file from /public directory to your Laravel root folder.
Posted by: Guest on January-07-2021
2

how to remove public from url in laravel

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
Posted by: Guest on May-30-2020

Code answers related to "removing public from laravel url"

Browse Popular Code Answers by Language