E
E
Evgeny Perin2015-06-03 10:49:32
Laravel
Evgeny Perin, 2015-06-03 10:49:32

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

1 answer(s)
Евгений Одинец, 2015-06-04
@evgeniy2194

Добрый день.
Данную задачу можно решить добавив VirtualHost в apache указав DocumentRoot /site/public, если же ваш хостинг не предоставляет такие услуги то можно все содержимое с папки public поместить в корень сайта, и переписать при этом несколько путей.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question