【发布时间】:2015-09-15 12:18:02
【问题描述】:
我需要将此 URL (http://www.example.com/learn) 重定向到此 URL (http://www.example.com/learn-it)。
问题是它匹配了重定向URL上的规则,并进行了无限循环。
这不起作用:
Redirect 301 http://www.example.com/learn http://www.example.com/learn-it
【问题讨论】:
-
你应该使用 /learnit 而不是 /learn-it。
标签: regex .htaccess url-redirection