这个目前只能靠修改默认的伪静态规则来实现:
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}&do=index" />
- </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
复制代码 |