rewrite or internal redirection cycle while processing '/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/api/index/index'
工具/原料
1
pc
2
xshell
方法/步骤
1
将网站的nginx 配置 last 改为break
2
nginx -t 检查nginx配置是否正确
3
重启nginx即可 systemctl restart nginx.service
方法/步骤2
将网站的nginx 配置 location / 只放rewrite 的规则,在单独弄一个 location ~ .*\.php 的匹配规则