S
S
Snewer2016-05-19 16:49:06
Yii
Snewer, 2016-05-19 16:49:06

How to remove /web/ from URL?

Hello!
How to properly remove the /web/ part from the URL in Yii2?
Now I did this: I copied all the contents of the web folder to the root and corrected the paths in index.php. Everything seems to be working. Will there be any problems?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Green_Cat, 2016-05-19
@Green_Cat

Here: (Yii2) How to remove web from url? Use search!

R
Rou1997, 2016-05-19
@Rou1997

Will there be any problems?

In fact, this is absolutely normal, if you protect all folders using deny from all, then there will be no problems, so if you work directly with the customer, do what you want, and if the project is cheap, then security should generally be paid separately, but some " gentlemen", etc. I would be "torn to pieces" for such words.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question