G
G
Grag2014-07-04 12:15:09
Yii
Grag, 2014-07-04 12:15:09

How to change /web to www in Yii2?

Actually the whole question is in the title.
Thanks for the help.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Makarov, 2014-07-04
@SamDark

You can just rename the folder.

A
Alexander Gorsky, 2014-07-04
@alcanoid

Put a symlink.

A
Alexander Zelenin, 2014-07-04
@zelenin

you can make any folder the DocumentRoot of your site. Call it what you want.

R
Roman Staroseltsev, 2015-06-09
@src83

The web directory can be painlessly renamed to www and everything will work, but!
There is a file /myProject/vendor/yiisoft/yii2/classes.php and it contains quite a few references to the former web directory of the form 'yii\web\Application' => YII2_PATH . '/web/Application.php', . And the question is, do I need to change the directory names in this file? Or maybe it's configured somewhere?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question