nginx index.php 隐藏设置
server
{
listen 80;
server_name www.fyxt701.com;
index index.html index.htm index.php;
root /home/wwwroot/default/shop/public/;
error_page 404 500 403 501 502 503 504 505 = http://www.fyxt701.com/index.php/index/error/page;
include enable-php-pathinfo.conf;
location / {
index index.html index.htm index.php l.php;
autoindex on;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1;
}
}
}