nginx环境下emlog的rewrite规则

在emlog站点的nginx配置文件里加入:

location / {
        index index.php index.html;
        if (!-e $request_filename)
        {
                rewrite ^/(.+)$ /index.php last;
        }
}

重启nginx即可生效。

posted @ 2013-01-08 22:54  cuxnil  阅读(195)  评论(0编辑  收藏  举报