找回密码
 注册
查看: 9855|回复: 21

[已解决] 鼠窝空间常用程序DZ-PW-UC等伪静态使用说明及规则

  [复制链接]
发表于 2010-2-4 19:35:04 | 显示全部楼层 |阅读模式
本帖最后由 22634206 于 2010-7-16 19:15 编辑

PHPWIND    后台开启伪静态即可使用! 具体在PW后台开启伪静态处有说明!(PW的这点做的挺人性的)


Discuz!   需要在空间上传一个  .htaccess的文件放在论坛的根目录下,方可开启伪静态!


如果您想继续美化您的伪静态请到官方搜索关键词:rewrite  伪静态 规则


欢迎使用鼠窝空间,建议您使用商业空间,支持鼠窝的发展========

========  鼠窝空间,真的是免费的,真的是很强大的,真的是免备案的 ========

=======使用鼠窝空间你才知道,原来国内的那么多IDC提供商的空间很逊========

===免费提供鼠窝空间用户使用DZ/PW遇到的问题,转换,空间搬家,偶也很逊,只能尽力而为之===

======== www.01161.com ==QQ:88214282(长期隐身) == TEL: 三级保密中 ========

其它程序的伪静态使用都类似如果直接启用伪静态不成功【在空间上传.htaccess的文件放在该程序的根目录下】





下面楼层有众多程序规则,使用方法一样/同理!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2010-2-4 19:44:48 | 显示全部楼层
  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
  4. RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
  5. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
  6. RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
  7. RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
复制代码
回复

使用道具 举报

发表于 2010-2-4 19:46:20 | 显示全部楼层
phpwind
  1. RewriteEngine On
  2. RewriteRule ^archiver/ /simple/ [R]
  3. RewriteRule ^fid-(\d+)\.html /simple/index.php\?f$1.html [R]
  4. RewriteRule ^fid-(\d+)-page-1.html /simple/index.php\?f$1.html [R]
  5. RewriteRule ^tid-(\d+)-page-1.html /simple/index.php\?t$1.html [R]
  6. RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
  7. RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2
复制代码
回复

使用道具 举报

发表于 2010-2-4 19:49:35 | 显示全部楼层
PHPWIND  nginx伪静态规则
  1. location / {
  2.         rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;
  3.         rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;
  4.         }
复制代码
回复

使用道具 举报

发表于 2010-2-4 19:50:23 | 显示全部楼层
BOBLOG
  1. RewriteEngine on
  2. RewriteBase /

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

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


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

  29. #Customized URL
  30. RewriteRule ^([^\/]*)\.html$ $1/ [R=301,L]
  31. RewriteRule ^([^/|.]*)/?([0-9]+)?/?([0-9]+)?/?$ read.php?blogalias=$1&page=$2&part=$3 [QSA,L]
复制代码
回复

使用道具 举报

发表于 2010-2-4 19:54:46 | 显示全部楼层
BOBLOG nginx伪静态规则
  1. if (!-e $request_filename)
  2.    {
  3.       rewrite ^/post/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ /read.php?entryid=$1&page=$2&part=$3 last;
  4.       rewrite ^/page/([0-9]+)/([0-9]+)/?$ /index.php?mode=$1&page=$2 last;
  5.       rewrite ^/starred/([0-9]+)/?([0-9]+)?/?$ /star.php?mode=$1&page=$2 last;
  6.       rewrite ^/category/([^/]+)/?([0-9]+)?/?([0-9]+)?/?$ /index.php?go=category_$1&mode=$2&page=$3 last;
  7.       rewrite ^/archiver/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ /index.php?go=archive&cm=$1&cy=$2&mode=$3&page=$4 last;
  8.       rewrite ^/date/([0-9]+)/([0-9]+)/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ /index.php?go=showday_$1-$2-$3&mode=$4&page=$5 last;
  9.       rewrite ^/user/([0-9]+)/?$ /view.php?go=user_$1 last;
  10.       rewrite ^/tags/([^/]+)/?([0-9]+)?/?([0-9]+)?/?$ /tag.php?tag=$1&mode=$2&page=$3 last;
  11.       rewrite ^/component/id/([0-9]+)/?$ /page.php?pageid=$1 last;
  12.       rewrite ^/component/([^/]+)/?$ /page.php?pagealias=$1 last;

  13.       #Force redirection for old rules
  14.       rewrite ^/read\.php/([0-9]+)\.htm$ http://$host/post/$1/ permanent;
  15.       rewrite ^/post/([0-9]+)\.htm$ http://$host/post/$1/ permanent;
  16.       rewrite ^/post/([0-9]+)\_([0-9]+)\.htm$ http://$host/post/$1/$2/ permanent;
  17.       rewrite ^/post/([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/post/$1/$2/$3/ permanent;
  18.       rewrite ^/index\_([0-9]+)\_([0-9]+)\.htm$ http://$host/page/$1/$2/ permanent;
  19.       rewrite ^/star\_([0-9]+)\_([0-9]+)\.htm$ http://$host/starred/$1/$2/ permanent;
  20.       rewrite ^/category\_([0-9]+)\.htm$ http://$host/category/$1/ permanent;
  21.       rewrite ^/category\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/category/$1/$2/$3/ permanent;
  22.       rewrite ^/archive\_([0-9]+)\_([0-9]+)\.htm$ http://$host/archiver/$1/$2/ permanent;
  23.       rewrite ^/archive\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/archiver/$1/$2/$3/$4/ permanent;
  24.       rewrite ^/showday\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/date/$1/$2/$3/ permanent;
  25.       rewrite ^/showday\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\_([0-9]+)\.htm$ http://$host/date/$1/$2/$3/$4/$5/ permanent;

  26.       #Filename alias
  27.       rewrite ^/([a-zA-Z0-9_-]+)/?([0-9]+)?/?([0-9]+)?/?$ /read.php?blogalias=$1&page=$2&part=$3 last;
  28.    }
复制代码
回复

使用道具 举报

 楼主| 发表于 2010-2-4 19:57:52 | 显示全部楼层
SupeSiteX-Space Rewrite
  1. ###        修改以下语句中的 /supesite 修改为你的SupeSite目录地址,如果程序放在根目录中,请将 /supesite 修改为 /
  2. RewriteBase /supesite

  3. ###        Rewrite 系统规则请勿修改
  4. RewriteRule ^([0-9]+)/spacelist(.+)$ index.php?uid/$1/action/spacelist/type$2 [L]
  5. RewriteRule ^([0-9]+)/viewspace(.+)$ index.php?uid/$1/action/viewspace/itemid$2 [L]
  6. RewriteRule ^([0-9]+)/viewbbs(.+)$ index.php?uid/$1/action/viewbbs/tid$2 [L]
  7. RewriteRule ^([0-9]+)/(.*)$ index.php?uid/$1/$2 [L]
  8. RewriteRule ^([0-9]+)$ index.php?uid/$1 [L]

  9. RewriteRule ^action(.+)$ index.php?action$1 [L]
  10. RewriteRule ^category(.+)$ index.php?action/category/catid$1 [L]
  11. RewriteRule ^viewnews(.+)$ index.php?action/viewnews/itemid$1 [L]
  12. RewriteRule ^viewthread(.+)$ index.php?action/viewthread/tid$1 [L]
  13. RewriteRule ^mygroup(.+)$ index.php?action/mygroup/gid$1 [L]
复制代码
回复

使用道具 举报

发表于 2010-2-4 19:59:44 | 显示全部楼层
啊,学习了
回复

使用道具 举报

 楼主| 发表于 2010-2-4 20:01:48 | 显示全部楼层
啊,学习了
hyman01 发表于 2010-2-4 19:59



    你真赶上直播....

哎中间插广告了,哎!
回复

使用道具 举报

发表于 2010-2-4 20:03:28 | 显示全部楼层
UCenter Home
  1. RewriteEngine on

  2. RewriteBase /

  3. RewriteRule ^(space|network)\-(.+)\.html$ $1.php?rewrite=$2 [L]
  4. RewriteRule ^(space|network)\.html$ $1.php [L]
  5. RewriteRule ^([0-9]+)$ space.php?uid=$1 [L]
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|Archiver|手机版|小黑屋|鼠窝站长论坛

GMT+8, 2024-12-23 08:11 , Processed in 0.061718 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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