I'm trying to make a redirect rule which follows this logic:
source: www.site.com/businessinfo.asp?accommID=123
destination: www.site.com/redirect.php?type=property&id=123
My code:
RewriteRule ^/businessinfo.asp$ /redirect.php?type=property&id=$1 [QSA]
I've tried a dozen different variations, but can't get anywhere. Can anyone help?
This should work:
it should redirect
www.site.com/businessinfo.asp?accommID=123
towww.site.com/redirect.php?type=property&id=123