阅读背景:

Laravel 5 nginx domain.com/index.php和domain.com/都可以使用。如何重定向/index.php?

来源:互联网 

Installed nginx and php 5.6 on a raspberry pi 2. Working wonderfully minus the fact that my pages still load from xyz.com/index.php/whatever (WRONG) aswell as xyz.com/whatever (PERFECT). I do NOT want /index.php to load my home page. I want it to redirect to / without the index.php. This goes for all subfolders aswell. What am I doing wrong?? This is the first server I've ever built so any help would be appreciated. Thanks.Installed nginx and php 5.6 on a raspberry pi 2




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: