E
E
Eugene2017-03-30 16:49:43
PHP
Eugene, 2017-03-30 16:49:43

How to make yii2 URLs work on php 7.0.17 FastCGI(Nginx + PHP-FPM)?

I decided to test how the project on yii2 on php7 would work, but was disappointed when I followed the links /categories and /site/feedback and nginx gave a "Not found" error. And so with all the links on the site now except for the main page. What to do, how to decide?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Bukharev, 2017-03-30
@e_snegirev

Before that was Apache? Or they just changed the php version to 7.0.17, if Apache was standing, you need to transfer the routing rules from .htaccess to the nginx server domain config, there is information on this in the git hub of the yii2 repository

M
Maxim Timofeev, 2017-03-30
@webinar

Yii2 on php7 flies without dancing with tambourines. But if you configured the server incorrectly, then what does yii and php have to do with it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question