无限星辰工作室-客户无限互联网动力之源
标题:
Discuz!x3.2 个人空间默认显示用户主页解决方案之一
[打印本页]
作者:
crx349
时间:
2014-10-22 21:21
标题:
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;
复制代码
欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/)
Powered by Discuz! X3.4