301.htaccess使用两个单独的URL重定向
我想把URL重定向到这两者301.htaccess使用两个单独的URL重定向,.htaccess,url,redirect,.htaccess,Url,Redirect,我想把URL重定向到这两者 example.com/new-old.php 及 当用户转到 example.com/new 如何操作?您可以在root.htaccess中使用此301规则: RedirectMatch 301 ^/(new)-(old|feb)/?$ /$1 固定格式和澄清。 RedirectMatch 301 ^/(new)-(old|feb)/?$ /$1
example.com/new-old.php
及
当用户转到
example.com/new
如何操作?您可以在root.htaccess中使用此301规则:
RedirectMatch 301 ^/(new)-(old|feb)/?$ /$1
固定格式和澄清。
RedirectMatch 301 ^/(new)-(old|feb)/?$ /$1