M
M
Maxim Savichev2015-08-20 10:48:58
symfony
Maxim Savichev, 2015-08-20 10:48:58

Deploy Symfony2. How to make web root?

Good afternoon
I posted my project on hosting, everything is fine except for one moment.
To use the site, I need to additionally prescribe /web to the url. This is extremely inconvenient, how to get rid of this and enter from the root directory, and not through the /web folder?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-08-20
Protko @Fesor

Delete public_html (or whatever your webroot will be) and make a symlink to the web directory.

O
OnYourLips, 2015-08-20
@OnYourLips

It is necessary to load a site one level higher in the file system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question