tags:

views:

13

answers:

1

I have some old indexed pages like:

index.php?action=addon_googlemap_showmap&listingID=XXXXX&popup=1

index.php?action=addon_googlemap_showmap&listingID=XXXXX&popup=yes

and I want to redirect them to new urls:

index.php?action=listingview&listingID=XXXXX

XXXXX is a number.

What should I put in my htaccess file?

Thank you in advance.

A: 

mod_rewrite is not worth the headaches (especially in .htaccess).

I would strongly recommend you put a redirect in your index.php instead. Something like

<?php
if ($_GET['action'] == 'addon_googlemap_showmap') {
    header("HTTP/1.1 301 Moved Permanently"); 
    header("Location: http://...../index.php?action=listingview&amp;listingID=" . $_GET['listingID']);
    exit();
}
Artelius