N
N
Natalia2016-02-01 14:46:13
Yii
Natalia, 2016-02-01 14:46:13

I post a Yii2 project for hosting. How to configure .htaccess to run application from web subfolder?

Now the best thing I have achieved is that just a list of files is displayed, and if I run it from the web directory, css is not picked up.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey, 2016-02-01
@NIcie

RewriteRule /(.*) web/$1 [L,QSA]
this is if it is impossible to make the web folder the root of the site.

N
Nikita, 2016-02-01
@bitver

This web folder must be the root directory for the domain.

L
LAV45, 2016-02-02
@LAV45

https://github.com/yiisoft/yii2-app-advanced/blob/...

N
Natalia, 2016-02-04
@NIcie

and such a piece of Apache settings, as for the front-end, I had in the web folder, and now I have remained, only I went up a level

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question