301 .htaccess 使用两个单独的 URL 重定向
301 .htaccess redirects with two separate URLs
我想URL重定向到两者
example.com/new-old.php
和
example.com/new-feb.php
当用户去
示例。com/new
我该怎么做?
您可以在 root .htaccess 中使用此 301 规则:
RedirectMatch 301 ^/(new)-(old|feb)/?$ /
我想URL重定向到两者
example.com/new-old.php
和
example.com/new-feb.php
当用户去
示例。com/new
我该怎么做?
您可以在 root .htaccess 中使用此 301 规则:
RedirectMatch 301 ^/(new)-(old|feb)/?$ /