.htaccess question - redirecting after ? parameter

Unarmed Gunman

Medium Pimpin'
May 2, 2007
7,335
287
0
The D
www.googlehammer.com
I have a site that gets residual traffic for something that the site isn't about anymore, but I might be able to monetize it. The problem is, the traffic doesn't come to a subfolder that I can redirect with a 301 such as domain.com/shittoredirect/stupidfile123.html, but instead they are just served up from domain.com/?shitty_id=1234. When I try to add this to my htaccess:

Redirect 301 /?shitty_id=1234 http://www.domain.com/givemeyourmoneymotherfucker.html

- nothing happens. Is there a way to redirect this type of traffic? I've got probably 20 or so of these different id's that are bringing in targeted traffic everyday that I'd like to make use of. Any ideas?