- 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;
复制代码则是emlog的伪静态规则 弄好这个之后在后台设置: 1、设置之前要先在网站根目录放一个.htaccess文件并且设置777 2、设置然后保存即
|