-
-
Save ufans/4243808 to your computer and use it in GitHub Desktop.
bd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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