使用 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
任何帮助将不胜感激!
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想尝试:
这应该匹配当前站点上的页面请求并附加到新站点。我们的服务器现在在 Apache 上,但我确实记得使用 Zeus 做事的困难。
you might want to try:
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.