我需要将多个网址重定向到一个
来自
1.example.com/groups/3d/
2.example.com/groups/3d/skype:softlist_ua?chat
3.example.com/groups/3d/+/
4.example.com/groups/3d/+/+/
5.example.com/groups/3d/+/skype:softlist_ua?chat
要
example.com/catalog/3d /
Redirect语句工作正常,但是当旧的URL包含获得reuqests时,它会将此get请求添加到新URL的末尾。我该如何删除它?
RedirectMatch 301 ^ / groups / 3d /.*$ / catalog / 3d / $ 1
答案 0 :(得分:0)
尝试:
RedirectMatch 301 ^/groups/3d/.*$ /catalog/3d/?
或
RewriteEngine On
RewriteRUle ^groups/3d/ /catalog/3d/? [L,R=301]