I have a subfolder on an old website that I would like to redirect to a subfolder on my new site. The trick here is that some people will be going directly to that folder at http://olddomain.com/folder1/
and they need to be directed to http://newdomain.com/folder1/
and there are people who have been emailed URL's with embedded usernames and passwords that need to be directed as well. For example, http://olddomain.com/folder1/cgi-bin/script.pl?name=NE&pw=TEST&psid=XXXXX
which would need to redirect to the same URL string at http://newdomain.com/folder1/
Each person would have their own name= pw= and psid= so I need a way to accept arguments in the redirect.
How can I accomplish this?