I’ve tried several variations and so far nothing is working – but it could be I have the code in the wrong place too? I have quite a few 404’s showing up in Google Webmaster that I need to redirect. There was an old version of the site written in PHP but it is now a WordPress site. The 404 errors are coming in like this and so on:-
http://www.domain.net/classifieds/?do=contactus http://www.domain.net/classifieds/?do=detailpage&cat=3&id=82 http://www.domain.net/classifieds/?do=detailpage&cat=3&id=16&page=2
I want to redirect these to http://domain.net/
ads/ and I don’t need to worry about any of the rest (?do= etc) as none of the old ads are available so I just want visitors to get the overall category page. And I’ve tried several versions using RedirectMatch and several using RewriteRule but nothing seems to get through. I’m putting the code into the Custom Code WP Rewrite Loop Start section.