追梦者的IT技术博客

今天是

现在位置:首页 » 网站搭建随笔 » emlog在nginx上的伪静态规则

emlog在nginx上的伪静态规则
作者:admin   分类:网站搭建随笔   评论(0)   浏览(37)   关键词: emlog的nginx伪静态规则
rewrite ^([^.]*)/post-(.+).html$ $1/index.php?post=$2 last;
        rewrite ^([^.]*)/record/(.+)/page/(.+)$ $1/index.php?record=$2&page=$3 last;
        rewrite ^([^.]*)/record/(.+)$ $1/index.php?record=$2 last;
        rewrite ^([^.]*)/sort/(.+)/page/(.+)$ $1/index.php?sort=$2&page=$3 last;
        rewrite ^([^.]*)/sort/(.+)$ $1/index.php?sort=$2 last;
        rewrite ^([^.]*)/author/(.+)/page/(.+)$ $1/index.php?author=$2&page=$3 last;
        rewrite ^([^.]*)/author/(.+)$ $1/index.php?author=$2 last;
        rewrite ^([^.]*)/tag/(.+)/page/(.+)$ $1/index.php?tag=$2&page=$3 last;
        rewrite ^([^.]*)/tag/(.+)$ $1/index.php?tag=$2 last;
        rewrite ^([^.]*)/page/(.+)$ $1/index.php?page=$2 last;
        rewrite ^([^.]*)/page/(.+)$ $1/index.php?page=$2 last;
        rewrite ^([^.]*)/post-(.+).html#(.+)$ $1/index.php?post=$2#$3 last;

    转载分享请注明原文地址(追梦者的IT技术博客):http://it.zhuimengba.com/post-23.html

相关文章