我正在尝试重定向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任何帮助都将不胜感激!
发布于 2011-03-09 17:08:54
您可能想要尝试:
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做事情的困难。
https://stackoverflow.com/questions/4987492
复制相似问题