我正在使用一些旧版URL挣扎,无法使用我的rewrite_mod。这就是我想要做的:从重定向任何内容
domain.com/profile/*到domain.com/profile/2012/*
AND同时
domain.com/profile/team/*到domain.com/profile/2011/*
(星号代表任何名称,一个单词)。
谢谢你的帮助!最好,罗马
您可以在以下两个规则中使用DocumentRoot/.htaccess
:
RedirectMatch 301 ^/profile/team/(.+)$ /profile/2011/$1
RedirectMatch 301 ^/profile/([^/]*)/?$ /profile/2012/$1
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句