Chinaunix首页 | 论坛 | 博客
  • 博客访问: 664797
  • 博文数量: 52
  • 博客积分: 7065
  • 博客等级: 少将
  • 技术积分: 2361
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-03 16:24
文章分类

全部博文(52)

文章存档

2021年(8)

2019年(2)

2018年(14)

2011年(1)

2010年(3)

2009年(4)

2008年(20)

分类:

2008-08-21 12:46:00

在网上看到的,丰富了部分功能,拿来参考一下,也许有天用得上。

PHP代码
  1. # BEGIN Sablog-X Rewrite   
  2. RewriteEngine On   
  3. # 文章   
  4. RewriteRule ^(.*)/show-([0-9]+)-([0-9]+)\.html$ $1/index.php?action=show&id=$2&page=$3 [L]   
  5. # 分类   
  6. RewriteRule ^(.*)/category-([0-9]+)-([0-9]+)\.html$ $1/index.php?action=index&cid=$2&page=$3 [L]   
  7. # 只带月份的归档   
  8. RewriteRule ^(.*)/archives-([0-9]+)-([0-9]+)\.html$ $1/index.php?action=index&setdate=$2&page=$3 [L]   
  9. # 用户列表、高级搜索、注册、登陆   
  10. RewriteRule ^(.*)/(archives|search|reg|login|index|links)\.html$ $1/index.php?action=$2 [L]   
  11. # 评论列表、标签列表、引用列表 带分页   
  12. RewriteRule ^(.*)/(comments|tagslist|trackbacks|index)-([0-9]+)\.html$ $1/index.php?action=$2&page=$3 [L]   
  13. # 具体评论规则   
  14. RewriteRule ^(.*)/comments-([0-9]+)-([0-9]+)\.html$ $1/index.php?action=show&id=$2&cmid=$3&goto=newcm [L]   
  15. # 具体标签规则   
  16. RewriteRule ^(.*)/(.*)-([0-9]+)\.html$ $1/index.php?action=tags&item=$2&page=$3 [L]   
  17. # google map规则   
  18. RewriteRule ^(.*)/sitemap\.xml$ $1/sitemap.php [L]   
  19. END Sablog-X  
阅读(1911) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~