How to open html file from the root on Yii2?

downloaded the file type yamail-1222222222222.html
How to make it display?
While any file from the root it displays a 404 on all files except .txt
June 26th 19 at 14:22
1 answer
June 26th 19 at 14:24
Solution
You have the web directory probably /frontend/web
And the file lies in the root of the project ie to /
Question: How to open html file from the root on Yii2?
Response: move it to /frontend/web
my file was in ../web

I did it through the controller, but I think loading plain html pages should work on the mind or to be involved somewhere - Hattie.Purdy28 commented on June 26th 19 at 14:27
* lay in ../web
lies where you need ) - Hattie.Purdy28 commented on June 26th 19 at 14:30
See configuring web servers, vskidku can stand the restriction on opening html - adell17 commented on June 26th 19 at 14:33
thanks, apparently it is not noticed - Hattie.Purdy28 commented on June 26th 19 at 14:36

Find more questions by tags PHPYii