Forum Moderators: phranque
RewriteRule ^archives/(category|author|tag)/((?:[a-z]{5,}/|feed/)+)(page/[0-9]+/)?(?:[a-z][a-z](?:_MX|_BR|_TW|-CN)?/)? http://www.example.com/blog/$1/$2$3 [R=301,L] add_filter('redirect_canonical', 'stop_guessing');
function stop_guessing($url) {
if (is_404()) {
return false;
}
return $url;
} [edited by: phranque at 4:32 am (utc) on May 28, 2013]
[edit reason] please use example.com [/edit]
The pattern is likely very specific such that it doesn't accidentally match other URL requests that it should not match.