How to remove public from the url of the website?

0 like 0 dislike
5 views
Hello.

Occasionally (or I think so) when you go to the main page of the site written in Laravel 5.4, there is a redirect rule "mysite.ru to mysite.ru/public/".

How to fix the problem?
by | 5 views

2 Answers

0 like 0 dislike
Make sure that .htaccess at public_html/public/.htaccess
meets GitHub
vkratse -
RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L]
by
0 like 0 dislike
Can create in the root .htaccess
RewriteEngine on RewriteRule (.*) /public/$1 [L]

And all
by

Related questions

0 like 0 dislike
2 answers
asked Apr 9, 2019 by dormadekhin
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
asked May 11, 2019 by gipsonsuro
110,608 questions
257,186 answers
0 comments
33,856 users