【问题标题】:web.config 301 redirect urlweb.config 301 重定向网址
【发布时间】:2015-03-05 16:14:46
【问题描述】:

我的规范网址指向 ://www.example.com/xyz/(没有 http),现在谷歌机器人正在使用以下网址访问我的服务器

http://www.example.com/xyz/:/www.example.com/xyz/

我希望他们重定向回http://www.example.com/xyz/

【问题讨论】:

    标签: regex .htaccess iis web-config


    【解决方案1】:

    htaccess 解决方案

    重写规则 ^([^/]+)/([^/]+)/:([a-zA-Z0-9-./]+) /$1/$2/ [L]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-04-17
      • 2016-09-01
      • 2010-12-03
      • 2012-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多