Skip to content

Instantly share code, notes, and snippets.

@ufans
Created December 9, 2012 07:36
Show Gist options
  • Save ufans/4243808 to your computer and use it in GitHub Desktop.
Save ufans/4243808 to your computer and use it in GitHub Desktop.
bd
# BEGIN Sablog-X
RewriteEngine On
RewriteBase /
# 文章
RewriteRule ^show-([0-9]+)-([0-9]+)\.html$ index.php?action=show&id=$1&page=$2
# 分类
RewriteRule ^category-([0-9]+)-([0-9]+)\.html$ index.php?action=index&cid=$1&page=$2
# 只带月份的归档
RewriteRule ^archives-([0-9]+)-([0-9]+)\.html$ index.php?action=index&setdate=$1&page=$2
# 用户列表、高级搜索、注册、登陆
RewriteRule ^(archives|search|reg|login|index|links)\.html$ index.php?action=$1
# 全部评论、标签列表、引用列表 带分页
RewriteRule ^(comments|tagslist|trackbacks|index)-([0-9]+)\.html$ index.php?action=$1&page=$2
# END Sablog-X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment