歡迎您光臨本站 註冊首頁

nginx隱藏index.php

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

nginx隱藏index.php

網上查了很多關於nginx隱藏index.php的方法,始終沒呢成功

高手介紹下吧

網上基本上是用nginx裡面添加fastcgi_param PATH_INFO $fastcgi_script_name;的方法

例如:http://www.abc.com/index.php?r=test

隱藏以後成http://www.abc.com/?=test
《解決方案》

連r= 的 r 也沒了?

應該配置索引頁即可吧

[火星人 ] nginx隱藏index.php已經有504次圍觀

http://coctec.com/docs/service/show-post-15606.html