【发布时间】:2015-03-05 07:38:59
【问题描述】:
我想将 URL 重定向到两者
example.com/new-old.php
和
example.com/new-feb.php
当用户去
example.com/new
我该怎么做?
【问题讨论】:
-
固定格式和澄清。
我想将 URL 重定向到两者
example.com/new-old.php
和
example.com/new-feb.php
当用户去
example.com/new
我该怎么做?
【问题讨论】:
您可以在 root .htaccess 中使用此 301 规则:
RedirectMatch 301 ^/(new)-(old|feb)/?$ /$1
【讨论】: