码迷,mamicode.com
首页 > Web开发 > 详细

配置Nginx支持ThinkPHP

时间:2015-10-20 19:47:58      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:nginx thinkphp

location / {

        root   /usr/share/nginx/html;

        index  index.html index.htm;


        if (!-e $request_filename) { 

        rewrite ^/index.php(.*)$ /index.php?s=$1 last;

        rewrite  ^(.*)$  /index.php?s=$1  last; 

        break;   

        } 

    }


本文出自 “态度决定一切” 博客,请务必保留此出处http://relearn.blog.51cto.com/2605709/1704503

配置Nginx支持ThinkPHP

标签:nginx thinkphp

原文地址:http://relearn.blog.51cto.com/2605709/1704503

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!