【问题标题】:What's the proper redirect rule (to avoid redirect loop)什么是正确的重定向规则(以避免重定向循环)
【发布时间】:2012-02-10 13:26:51
【问题描述】:

我想将损坏的文件名“艺术家_-title”重定向到“艺术家-_title.zip”。我在 .htaccess 中试过这个:

RedirectMatch 301 artist_-_title artist_-_title.zip

我想我确实了解导致循环的原因,但我对正则表达式了解不多。

【问题讨论】:

    标签: regex apache http redirect http-status-code-301


    【解决方案1】:

    你应该这样写:

    RedirectMatch 301 artist_-_title$ artist_-_title.zip
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-16
      相关资源
      最近更新 更多