How to remove public from the url of the website?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
9 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 | 9 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 12, 2019 by gipsonsuro
110,608 questions
257,186 answers
0 comments
35,431 users