Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已答复] 求DZ7.2 伪静态规则httpd.ini文件

[复制链接]
qq599315722 发表于 2010-1-25 17:57:50 | 显示全部楼层 |阅读模式
RT、、、  HOME的伪静态也要
 楼主| qq599315722 发表于 2010-1-25 18:15:48 | 显示全部楼层
我的DZ是在BBS目录下的
回复

使用道具 举报

 楼主| qq599315722 发表于 2010-1-25 18:24:59 | 显示全部楼层
我上传httpd.ini文件到根目录  伪静态不可以访问  我的空间支持Rewrite组件
回复

使用道具 举报

 楼主| qq599315722 发表于 2010-1-25 22:31:01 | 显示全部楼层
被忽略了
回复

使用道具 举报

陪练吧 发表于 2010-1-26 12:35:04 | 显示全部楼层
我也要
回复

使用道具 举报

玻璃屋女孩 发表于 2010-1-26 14:23:16 | 显示全部楼层
本帖最后由 玻璃屋女孩 于 2010-01-26 14:27 编辑

UCenter Home 开启 Rewrite 的方法
apache
http://faq.comsenz.com/viewnews-55
IIS
http://faq.comsenz.com/viewnews-11

论坛的
http://faq.comsenz.com/viewnews-11
回复

使用道具 举报

陪练吧 发表于 2010-1-31 01:05:06 | 显示全部楼层
www.kongxiangzi.com/bbs哈哈搞定。
回复

使用道具 举报

bwlx007 发表于 2010-2-5 08:04:55 | 显示全部楼层
本帖最后由 bwlx007 于 2010-02-05 08:30 编辑
  1. [ISAPI_Rewrite]
  2. # 3600 = 1 hour
  3. CacheClockRate 3600
  4. RepeatLimit 32
  5. # Discuz! Rewrite规则
  6. # 独立主机用户
  7. # Protect httpd.ini and httpd.parse.errors files
  8. # from accessing through HTTP
  9. RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4
  10. RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
  11. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
  12. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4
  13. RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3

  14. # SupeSite Rewrite规则
  15. # 独立主机用户
  16. # 修改以下语句中的 /supesite 修改为你的SupeSite目录地址,如果程序放在根目录中,请将 /supesite 修改为 /
  17. RewriteRule ^/supesite/([0-9]+)$ /supesite/index\.php\?uid/$1 [L]
  18. RewriteRule ^/supesite/([0-9]+)/spacelist(.+)$ /supesite/index\.php\?uid/$1/action/spacelist/type$2 [L]
  19. RewriteRule ^/supesite/([0-9]+)/viewspace(.+)$ /supesite/index\.php\?uid/$1/action/viewspace/itemid$2 [L]
  20. RewriteRule ^/supesite/([0-9]+)/viewbbs(.+)$ /supesite/index\.php\?uid/$1/action/viewbbs/tid$2 [L]
  21. RewriteRule ^/supesite/([0-9]+)/(.*)$ /supesite/index\.php\?uid/$1/$2 [L]
  22. RewriteRule ^/supesite/action(.+)$ /supesite/index\.php\?action$1 [L]
  23. RewriteRule ^/supesite/category(.+)$ /supesite/index\.php\?action/category/catid$1 [L]
  24. RewriteRule ^/supesite/viewnews(.+)$ /supesite/index\.php\?action/viewnews/itemid$1 [L]
  25. RewriteRule ^/supesite/viewthread(.+)$ /supesite/index\.php\?action/viewthread/tid$1 [L]
  26. RewriteRule ^/supesite/mygroup(.+)$ /supesite/index\.php\?action/mygroup/gid$1 [L]

  27. # UCHome Rewrite规则
  28. # 独立主机用户
  29. # 修改以下语句中的 /uchome 修改为你的uchome目录地址,如果程序放在根目录中,请将 /uchome 修改为 /
  30. RewriteRule ^/uchome/(space|network)-(.+)\.html$ /uchome/$1\.php\?rewrite=$2 [L]
  31. RewriteRule ^/uchome/(space|network)\.html$ /uchome/$1\.php [L]
  32. RewriteRule ^/uchome/([0-9]+)$ /uchome/space\.php\?uid=$1 [L]

  33. # SupeV Rewrite规则
  34. # 独立主机用户
  35. RewriteRule ^(.*)/ivideo(-tv-([0-9]+))?(-ti-([0-9]+))?(-tc-([0-9]+))?(-page-([0-9]+))?\.html$ $1/ivideo\.php\?tv=$3&ti=$5&tc=$7&page=$9
  36. RewriteRule ^(.*)/ispecial(-tv-([0-9]+))?(-ti-([0-9]+))?(-tc-([0-9]+))?(-page-([0-9]+))?\.html$ $1/ispecial\.php\?tv=$3&ti=$5&tc=$7&page=$9
  37. RewriteRule ^(.*)/icategory\.html$ $1/icategory\.php
  38. RewriteRule ^(.*)/category-cid-([0-9]+)(-tag-([^-]*))?(-timelimit-([0-9]+))?(-orderlimit-([0-9]+))?(-page-([0-9]+))?\.html$ $1/category\.php\?cid=$2&tag=$4&timelimit=$6&orderlimit=$8&page=$10
  39. RewriteRule ^(.*)/vspace-(mid|username)-(.+)\.html$ $1/vspace\.php\?$2=$3
  40. RewriteRule ^(.*)/video-(vid|ivid)-(.+)\.html$ $1/video\.php\?$2=$3
  41. RewriteRule ^(.*)/special-spid-([0-9]+)\.html$ $1/special\.php\?spid=$2
复制代码
可以查看演示站点:http://www.abckj.cn以检验本规则是否属实!
回复

使用道具 举报

bwlx007 发表于 2010-2-5 08:31:47 | 显示全部楼层
注意一点就是UCHome Rewrite规则针对独立主机用户需要修改语句中的 /uchome 修改为你的uchome目录地址,如果程序放在根目录中,请将 /uchome 修改为 /  一般为/home
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-20 20:08 , Processed in 0.347380 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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