Zeus 使用宙斯重定向整个站点

Zeus 使用宙斯重定向整个站点,zeus,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 任何帮助都将不胜感激 您可

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

    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
任何帮助都将不胜感激

您可能想试试:

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上,但我确实记得在使用宙斯时遇到的困难