您的位置:首页 > 运维架构 > Nginx

THINKPHP rewrite模式在nginx下配置

2014-09-23 13:13 218 查看
差点折腾死了!其实就是一个rewrite   
location / {
index  index.html index.htm index.php;
if (!-e $request_filename) {
rewrite  ^(.*)$  /index.php?s=$1  ;

}
<span style="line-height: 14.3000001907349px; font-family: Arial, Helvetica, sans-serif;">	</span>}<span style="line-height: 14.3000001907349px; font-family: Arial, Helvetica, sans-serif;">			</span>
<pre name="code" class="plain" style="color: rgb(51, 51, 51); font-size: 13px; line-height: 14.3000001907349px;">if要写在location里面,如果写在上面的话会直接rewrite!!!!


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: