Discuz教程网

[环境相关] Discuz X2.5点击用户名、头像链接跳到空间首页的修改方法

[复制链接]
authicon dly 发表于 2013-1-12 20:38:58 | 显示全部楼层 |阅读模式
这个目前只能靠修改默认的伪静态规则来实现:

Apache Web Server(独立主机用户)将
  1. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3&%1
复制代码
修改为
  1. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3&%1&do=index

复制代码
Apache Web Server(虚拟主机用户)将
  1. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
复制代码
修改为
  1. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1&do=index

复制代码
IIS Web Server(独立主机用户)将
  1. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5
复制代码
修改为
  1. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5&do=index

复制代码
IIS7 Web Server(独立主机用户)将
  1.                 <rule name="home_space">
  2.                         <match url="^(.*/)*space-(username|uid)-(.+).html\?*(.*)$" />
  3.                         <action type="Rewrite" url="{R:1}/home.php\?mod=space&{R:2}={R:3}&{R:4}" />
  4.                 </rule>
复制代码
修改为
  1.                 <rule name="home_space">
  2.                         <match url="^(.*/)*space-(username|uid)-(.+).html\?*(.*)$" />
  3.                         <action type="Rewrite" url="{R:1}/home.php\?mod=space&{R:2}={R:3}&{R:4}&do=index" />
  4.                 </rule>

复制代码
Zeus Web Server将
  1. match URL into $ with ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$
  2. if matched then
  3.         set URL = $1/home.php?mod=space&$2=$3&$4
  4. endif
复制代码
修改为
  1. match URL into $ with ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$
  2. if matched then
  3.         set URL = $1/home.php?mod=space&$2=$3&$4&do=index
  4. endif
复制代码
游客,如果您要查看本帖隐藏内容请回复



上一篇:Discuz X2.5去除“管理操作信息”在帖子内容阅读页显示的方法
下一篇:Discuz X2.5彻底清空DIY内容,从头来过的方法
authicon ZXY280 发表于 2013-1-13 16:48:11 | 显示全部楼层
我也来学习一下!
authicon 茉格锦辞ˇ 发表于 2013-1-30 20:32:20 | 显示全部楼层
楼主加油,我们都看好你哦。
authicon Sephiroth 发表于 2013-1-31 10:19:47 | 显示全部楼层
我只说两句……
authicon 126PL.COM 发表于 2013-7-10 10:12:07 | 显示全部楼层
楼主加油,我们都看好你哦。
authicon 126PL.COM 发表于 2013-7-10 10:26:35 | 显示全部楼层
尝试了一下,不行
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-4-28 12:17

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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