Answer the question
In order to leave comments, you need to log in
How to remove public/ in laravel 5 via htaccess?
The Internet is full of solutions:
RewriteEngine On
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
But for some reason no one says. that the site continues to be displayed at site.ru/public/? complete duplication with /public/ addresses is obtained.
Is it possible to change this somehow, namely by means of htaccess?
Answer the question
In order to leave comments, you need to log in
Добрый день.
Данную задачу можно решить добавив VirtualHost в apache указав DocumentRoot /site/public, если же ваш хостинг не предоставляет такие услуги то можно все содержимое с папки public поместить в корень сайта, и переписать при этом несколько путей.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question