Forum Moderators: phranque
I am trying to use mod_rewrite to redirect some old URLs to new ones. I need to redirect a URL like 'services.php?id=2' to simply '/services/all' with no query string parameters. Using the following adds the?id=2 to the end of the URL but I want a fresh redirect without this:
RewriteCond $1 ^services.php(.*)
RewriteRule ^(.*) /services/all [L,R=301]
Can anyone help?
Thanks a lot!