2
每个文件都被传递给“index.php”,但由于fastcgi,每个php文件都没有正确重定向。任何解决方法?Nginx不重定向php文件
location/{
if ($request_filename ~* "index.php") {
break;
}
rewrite ^/(.*)$ /index.php?page=$1 last;
break;
}
location ~* \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
感谢