crx349 发表于 2014-10-22 21:21:39

Discuz!x3.2 个人空间默认显示用户主页解决方案之一

修改伪静态规则
Apache Web Server(独立主机用户)
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3&%1
修改为
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3&%1&do=index
Apache Web Server(虚拟主机用户)将
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
修改为
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1&do=index
IIS Web Server(独立主机用户)将
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5
修改为
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5&do=index
IIS7 Web Server(独立主机用户)将
                <rule name="home_space">
                        <match url="^(.*/)*space-(username|uid)-(.+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/home.php\?mod=space&{R:2}={R:3}&{R:4}" />
                </rule>
修改为
                <rule name="home_space">
                        <match url="^(.*/)*space-(username|uid)-(.+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/home.php\?mod=space&{R:2}={R:3}&{R:4}" />
                </rule>
Zeus Web Server将
match URL into $ with ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$
if matched then
      set URL = $1/home.php?mod=space&$2=$3&$4
endif
修改为
match URL into $ with ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$
if matched then
      set URL = $1/home.php?mod=space&$2=$3&$4&do=index
endif
Nginx Web Server将
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
修改为
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3&do=index last;


页: [1]
查看完整版本: Discuz!x3.2 个人空间默认显示用户主页解决方案之一