A
A
Alexander Ivanov2017-05-10 16:07:42
Yii
Alexander Ivanov, 2017-05-10 16:07:42

How to open html file from root in Yii2?

uploaded a file like yamail-1222222222222.html
How to make it display?
While it displays 404 on any file from the root, on all files except .txt

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Bukharev, 2017-05-10
@cimonlebedev

Your web directory is apparently /frontend/web
And the file lies in the root of the project, that is, in /
Question: How to open the html file from the root in Yii2?
Answer: move it to /frontend/web

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question