0

我正在尝试重定向 Zeus 服务器上的整个站点。我只成功地重定向了主页。其他页面出现“找不到页面”。这是我使用的代码:

    match URL into $ with ^\/$
if matched
set OUT:Location = http://www.mentalhealthreform.ie/
set OUT:Content-Type = text/html
set RESPONSE = 301
set BODY = Moved
goto END
endif

任何帮助将非常感激!

4

1 回答 1

0

您可能想尝试:

RULE_0_START:
match IN:Host into $ with currentsite\.co\.uk$
if matched then
match URL into $ with ^/(.*)$
    set OUT:Location = http://www.newsite.com/$1
    set OUT:Content-Type = text/html
    set RESPONSE = 301
    set BODY = Moved
goto END
endif
RULE_0_END:

这应该匹配当前站点上的页面请求并附加到新的。我们的服务器现在在 Apache 上,但我确实记得使用 Zeus 做事的困难。

于 2011-03-09T09:08:54.170 回答