pathinfo的问题:nginx的配置文件nginx.conf中的 include enable-php.conf
修改为 include enable-php-pathinfo.conf
php.ini 问题: 把php配置文件php.ini中的 cgi.fix_pathinfo=0
修改为 cgi.fix_pathinfo=1
nginx rewrite 问题 : 改为 rewrite ^(.*)$ /index.php?s=$1 last;
deepxl 12月 3rd, 2017
Posted In: PHP开发笔记