【问题标题】:.htaccess redirect specific folder to another URL, ending with the same name.htaccess 将特定文件夹重定向到另一个 URL,以相同的名称结尾
【发布时间】:2018-03-26 17:53:02
【问题描述】:

我想在 .htaccess 中执行此操作:

类似的网址 http://example.com/folder/different-name 被重定向到: http://example.net/different-name

第一个站点的“文件夹”始终相同,但“不同名称”始终不同

【问题讨论】:

    标签: .htaccess url redirect


    【解决方案1】:

    我找到了解决办法:

    RedirectMatch 301 /folder(.*)/http://example.com/$1

    【讨论】:

      猜你喜欢
      • 2014-11-21
      • 2015-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-28
      • 2014-11-24
      • 2012-05-08
      相关资源
      最近更新 更多