找回密码
 注册
搜索
免费空间 免费域名 免费AI 老牌主机商首月仅1美分!27美元/年!Spaceship优惠码 Namecheap优惠码阿里云2核2G3M新老续费同享99元/年!
查看: 580|回复: 18

[其它资源] 谁会BO-BLOG的帮下

[复制链接]
头像被屏蔽
发表于 2009-10-18 09:03:26 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2009-10-18 09:04:32 | 显示全部楼层
空间支持 .htaccess 就行了
头像被屏蔽
 楼主| 发表于 2009-10-18 09:06:25 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2009-10-18 09:06:49 | 显示全部楼层
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine on
  3. RewriteBase /

  4. #New rules since 2.1.0 beta 2
  5. RewriteCond %{REQUEST_FILENAME} -f [OR]
  6. RewriteCond %{REQUEST_FILENAME} -d
  7. RewriteRule ^.*$ - [L]

  8. RewriteRule ^post/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ read.php?entryid=$1&page=$2&part=$3 [QSA,L]
  9. RewriteRule ^page/([0-9]+)/([0-9]+)/?$ index.php?mode=$1&page=$2 [QSA,L]
  10. RewriteRule ^starred/([0-9]+)/?([0-9]+)?/?$ star.php?mode=$1&page=$2 [QSA,L]
  11. RewriteRule ^category/([^/]+)/?([0-9]+)?/?([0-9]+)?/?$ index.php?go=category_$1&mode=$2&page=$3 [QSA,L]
  12. RewriteRule ^archiver/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ index.php?go=archive&cm=$1&cy=$2&mode=$3&page=$4 [QSA,L]
  13. RewriteRule ^date/([0-9]+)/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ index.php?go=showday_$1-$2-$3&mode=$4&page=$5 [QSA,L]
  14. RewriteRule ^user/([0-9]+)/?$ view.php?go=user_$1 [L]
  15. RewriteRule ^tags/([^/]+)/?([0-9]+)?/?([0-9]+)?/?$ tag.php?tag=$1&mode=$2&page=$3 [QSA,L]
  16. RewriteRule ^component/id/([0-9]+)/?$ page.php?pageid=$1 [L]
  17. RewriteRule ^component/([^/]+)/?$ page.php?pagealias=$1 [L]


  18. #Force redirection for old rules
  19. RewriteRule ^post/([0-9]+)\.htm$ post/$1/ [R=301,L]
  20. RewriteRule ^post/([0-9]+)\_([0-9]+)\.htm$ post/$1/$2/ [R=301,L]
  21. RewriteRule ^post/([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ post/$1/$2/$3/ [R=301,L]
  22. RewriteRule ^index\_([0-9]+)\_([0-9]+)\.htm$ page/$1/$2/ [R=301,L]
  23. RewriteRule ^star\_([0-9]+)\_([0-9]+)\.htm$ starred/$1/$2/ [R=301,L]
  24. RewriteRule ^category\_([0-9]+)\.htm$ category/$1/ [R=301,L]
  25. RewriteRule ^category\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ category/$1/$2/$3/ [R=301,L]
  26. RewriteRule ^archive\_([0-9]+)\_([0-9]+)\.htm$ archiver/$1/$2/ [R=301,L]
  27. RewriteRule ^archive\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ archiver/$1/$2/$3/$4/ [R=301,L]
  28. RewriteRule ^showday\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ date/$1/$2/$3/ [R=301,L]
  29. RewriteRule ^showday\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ date/$1/$2/$3/$4/$5/ [R=301,L]

  30. #Customized URL
  31. RewriteRule ^([^\/]*)\.html$ $1/ [R=301,L]
  32. RewriteRule ^([^/|.]*)/?([0-9]+)?/?([0-9]+)?/?$ read.php?blogalias=$1&page=$2&part=$3 [QSA,L]
  33. </IfModule>
复制代码
发表于 2009-10-18 09:07:40 | 显示全部楼层
汗 不早说。。。。。。。。。
头像被屏蔽
 楼主| 发表于 2009-10-18 09:08:34 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2009-10-18 09:09:35 | 显示全部楼层
本帖最后由 ヤ↘壞寶寶 于 2009-10-18 09:14 编辑

WIN的话 自己问下 服务器有没有装 ISAPI Rewrite
然后在httpd.ini里自己写下规则 就行了。。。
发表于 2009-10-18 09:13:29 | 显示全部楼层
  1. [ISAPI_Rewrite]
  2. CacheClockRate 3600
  3. RepeatLimit 32

  4. RewriteRule ^(.*)/post/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ $1/read\.php\?entryid=$2&page=$3&part=$4 [I]
  5. RewriteRule ^(.*)/page/([0-9]+)/([0-9]+)/?$ $1/index\.php\?mode=$2&page=$3 [I]
  6. RewriteRule ^(.*)/starred/([0-9]+)/?([0-9]+)?/?$ $1/star\.php\?mode=$2&page=$3 [I]
  7. RewriteRule ^(.*)/category/([^/]+)/?([0-9]+)?/?([0-9]+)?/?$ $1/index\.php\?go=category_$2&mode=$3&page=$4 [I]
  8. RewriteRule ^(.*)/archiver/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ $1/index\.php\?go=archive&cm=$2&cy=$3&mode=$4&page=$5 [I]
  9. RewriteRule ^(.*)/date/([0-9]+)/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ $1/index\.php\?go=showday_$2-$3-$4&mode=$5&page=$6 [I]
  10. RewriteRule ^(.*)/user/([0-9]+)/?$ $1/view\.php\?go=user_$2 [I]
  11. RewriteRule ^(.*)/tags/([^/]+)/?([0-9]+)?/?([0-9]+)?/?$ $1/tag\.php\?tag=$2&mode=$3&page=$4 [I]
  12. RewriteRule ^(.*)/component/id/([0-9]+)/?$ $1/page\.php\?pageid=$2 [I]
  13. RewriteRule ^(.*)/component/([^/]+)/?$ $1/page\.php\?pagealias=$2 [I]

  14. #Customized URL
  15. RewriteRule ^(.*)/alias/([^/]*)\_?([0-9]+)?\_?([0-9]+)?/?$ $1/read\.php\?blogalias=$2&page=$3&part=$4 [I]

  16. #Force redirection for old rules
  17. RewriteRule ^(.*)/post/([0-9]+)\.htm$ $1/post/$2/ [R]
  18. RewriteRule ^(.*)/post/([0-9]+)\_([0-9]+)\.htm$ $1/post/$2/$3/ [R]
  19. RewriteRule ^(.*)/post/([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ $1/post/$2/$3/$4/ [R]
  20. RewriteRule ^(.*)/index\_([0-9]+)\_([0-9]+)\.htm$ $1/page/$2/$3/ [R]
  21. RewriteRule ^(.*)/star\_([0-9]+)\_([0-9]+)\.htm$ $1/starred/$2/$3/ [R]
  22. RewriteRule ^(.*)/category\_([0-9]+)\.htm$ $1/category/$2/ [R]
  23. RewriteRule ^(.*)/category\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ $1/category/$2/$3/$4/ [R]
  24. RewriteRule ^(.*)/archive\_([0-9]+)\_([0-9]+)\.htm$ $1/archiver/$2/$3/ [R]
  25. RewriteRule ^(.*)/archive\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ $1/archiver/$2/$3/$4/$5/ [R]
  26. RewriteRule ^(.*)/showday\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ $1/date/$2/$3/$4/ [R]
  27. RewriteRule ^(.*)/showday\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ $1/date/$2/$3/$4/$5/$6/ [R]
复制代码
头像被屏蔽
 楼主| 发表于 2009-10-18 09:22:34 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2009-10-18 09:50:33 | 显示全部楼层
我用z-blog
http://blog.cn00.net
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|免费吧论坛

GMT+8, 2025-1-19 02:28 , Processed in 0.022084 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表