Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12461

Reply To: htaccess redirect code – redirect old page to new page

$
0
0

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.

  • This reply was modified 14 hours, 11 minutes ago by  AITpro Admin.
  • This reply was modified 14 hours, 9 minutes ago by  AITpro Admin.

Viewing all articles
Browse latest Browse all 12461

Trending Articles