mercredi 29 avril 2015

url redirect exact match including params

i would like to make a 301 redirect and from an old website using the exact exact url with no extra parameters.

example:

/en-direct.php?page=7

to go to:

http://ift.tt/1bCrqWC

and page:

/en-direct.php?page=8

to go to:

http://ift.tt/1bSFCLX

i used:

redirectMatch 301 ^/en-direct.php$ http://ift.tt/1bSFD2d
redirectMatch 301 ^/en-direct.php?page=7$ http://ift.tt/1bCrqWC
redirectMatch 301 ^/en-direct.php?page=8$ http://ift.tt/1bSFCLX

however: i get http://ift.tt/1bSFD2d every time with all the parameters from the redirect page (example - http://ift.tt/1bCroOr )

any help will be much appreciated.

Aucun commentaire:

Enregistrer un commentaire