P
P
potapovdmtriy2015-07-14 21:44:03
Laravel
potapovdmtriy, 2015-07-14 21:44:03

How to fix folder structure in laravel?

On the local I ruled httpd-vhosts.conf in order to have access to the site like this sati.ru and not sait.ru/public but how to do it on the hosting?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danil Chekalin, 2015-07-14
@dakiesse

It all depends on the hosting, if you do not touch laravel.
Option directly with change in laravel. You can take out, for example, the entire folder outside domain.com and change the paths in public/index.php.
An example of a file structure:
=====
.
..
laravel_folder
-- (everything here except public)
domain.com
-- (everything in public folders here)
anotherSite1.com
anotherSite2.com

D
D', 2015-07-14
@Denormalization

Put the folder with laravel anywhere.
Delete the public_html folder (or wherever DocumentRoot points to) and make a symlink:
ln -s /путь/к/laravel/public /путь/к/public_html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question