【问题标题】:301 Redirect for subdirectories ZeusZeus 子目录的 301 重定向
【发布时间】:2012-09-27 14:54:20
【问题描述】:

我已更改站点中子文件夹的名称,需要知道 rewrite.script 的代码

示例:

我将如何指导http://www.mydomain/stackoverflow/index

http://www.mydomain/stackoverflow2/index

我想避免单独编写每个 url 路径,因为网站很大。请帮助我在 ZEUS 服务器 ARGH 上!!

【问题讨论】:

    标签: redirect rewrite subdirectory zeus


    【解决方案1】:
    match URL into $ with ^/stackoverflow/(.*)
    if matched then
          set OUT:Location = /stackoverflow2/$1
        set RESPONSE=301
        set BODY=Page moved
        goto END
    endif
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-23
      • 1970-01-01
      • 2013-09-30
      • 2018-12-10
      • 2012-05-13
      • 2011-07-08
      • 2021-04-04
      • 2019-03-30
      相关资源
      最近更新 更多