Redirecting URLs with specific parameters to friendly URL pages

subBlue

Active Member
#1
I'm trying to redirect some legacy URLs for a site we have redesigned that have the format: /services/services.asp?p=13 going to /services/accomodation

I've been trying rewrite rules like:
Code:
RewriteRule ^/services/services.asp?p=13 /services/accommodation [R=301,L]
RewriteRule ^/services/services.asp?p=70 /services/activities [R=301,L]
However, the original URL isn't getting matched because the rule will only match until the parameters. Any suggestions on getting around this?
 
Top