View Full Version : htaccess Rewrite Rule Issues

05-04-2010, 10:32 PM
I'm having a bit of trouble with this one, if anyone could advise over what I am doing wrong that would be great :)

I am trying to redirect users going to:

To: mysite.com/signup.php?register=1&c=$1&n=$2&code=$3

I got this so far:
RewriteRule ^signup/(.*)/(.*)/?code=(.*) http://mysite.com/signup.php?register=1&c=$1&n=$2&code=$3

But it doesn't seem to work. Without the rewrite on the essential code it is fine but it is as soon as I add in ?code=(.*) everything gets stuck, any ideas on this one?

05-05-2010, 07:03 PM
Escape the question mark?