不积跬步,无以至千里!
emlog官方默认只支持apache伪静态。其中.htaccess文件是设置伪静态后自动生成的。
如果服务器是nginx就需要自己写了。
可结合/include/lib/url.php文件。
规则如下:
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;
后台设置:
评论:
2014-07-25 10:08