After restful is configured in yii2, a 404 error is reported under nginx
PHP中文网2017-05-16 17:10:04
0
1
683
After the restful configuration in the yii2 framework is completed, you can use api.test.com/index.php/users to access under apache However, when accessing like this under nginx, a 404 error is reported
Change the access address to: api.test.com/users
The above is to beautify the route, which can be understood as removing 'index.php'