0

All

I want to remove public from url using htaccess, i've tried many ways but it doesn't work in laravel 6. The latest i'm using this way : https://hdtuto.com/article/laravel-remove-public-from-url-using-htaccess

But same result, any sugestion ?

1 Answer 1

1

SOLVED !!!

<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> 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 ^ index.php 

source : How to remove public from laravel url

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.