【问题标题】:Redirecting Entire Site with Zeus使用 Zeus 重定向整个站点
【发布时间】:2011-09-02 17:46:23
【问题描述】:

我正在尝试重定向 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

任何帮助将不胜感激!

【问题讨论】:

    标签: zeus


    【解决方案1】:

    你可能想试试:

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

    【讨论】:

      猜你喜欢
      • 2017-12-04
      • 1970-01-01
      • 2015-08-22
      • 1970-01-01
      • 2011-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-30
      相关资源
      最近更新 更多