首页 > Web开发 > 详细

nginx URL隐藏index.php

时间:2018-08-04 19:50:28      阅读:194      评论:0      收藏:0      [点我收藏+]

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?q=$1 last;
break;
}
}

nginx URL隐藏index.php

原文:https://www.cnblogs.com/fanhuo/p/9419476.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!