使用 Zeus 重定向整个站点

发布于 2024-10-17 03:51:20 字数 290 浏览 3 评论 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

任何帮助将不胜感激!

I am trying to redirect an entire site that is on a Zeus server. I have only managed to successfully redirect the homepage. Other pages are coming up with "Page not found". Here's the code I used:

    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

Any help would be much appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赴月观长安 2024-10-24 03:51:20

您可能想尝试:

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 做事的困难。

you might want to try:

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:

This should match the page request on the current site and append to the new. Our servers are now on Apache, but I do remember the difficulties in doing things with Zeus.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文