rewrite or internal redirection cycle while processing "/index.php/index.php/index.php/index.php/ind


我的是主机访问虚拟机的共享文件下的项目

这个问题,是因为nginx去掉index.php的配置问题用` location / {

 if (!-e $request_filename){ rewrite ^/(.*)$ /index.php/$1 last; } 

}

用以上代码就会出错,我改成

location / {

 if (!-e $request_filename){ rewrite . /index.php last; } 

}

这样就OK了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM