...

View Full Version : htaccess Rewrite Rule Issues



Sussex_Chris
05-04-2010, 09: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:
mysite.com/signup/Twitter/9/?code=examplecode...rhyt78..32h.ytdeDW9

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?

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum