Apache mod_rewrite question - Round 2

LVL 1
MAVERICKAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ahoffmannConnect With a Mentor Commented:
RewriteCond %{QUERY_STRING} name=(.*)
RewriteRule ^/signuperror.htm\?(.*)$ /page.php?$1
0
 
MAVERICKAuthor Commented:
Hi Everyone,

I used the following rule which half works - i still can't pass the msg part of the query string.

RewriteCond %{QUERY_STRING} name=(.*)
RewriteRule ^signuperror.htm /page.php?p=signuperror&name=%1&msg=1 [P,L]
RewriteCond %{QUERY_STRING} email=(.*)
RewriteRule ^signuperror.htm /page.php?p=signuperror&email=%1&msg=2 [P,L]

Cheers!
Maverick
0
 
samriCommented:
Maverick,

I am not an expert in mod_rewrite, but the "%1" looks strange... isn't it suppose to be $1 ?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
MAVERICKAuthor Commented:
Hi Samri,

Apparently not - $1 refers to terms in the URL not the query string.

Here is the 'round 1' question
http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_21002207.html

Cheers!
-John
0
 
MAVERICKAuthor Commented:
Sorry about the delay

Will confirm ahoffmans' suggestion and get back to you ASAP

Maverick
0
 
MAVERICKAuthor Commented:
I've been having unrelated issues on my development server & time contraints that prevented me from fully evaluating ahoffman's solution. I believe it was basically correct, there was just some further issues that prevented me from fully perfecting the rewrite rules required (& why i didn't originally accept the answer)

I decided to give ahoffam the points and close the question.

Maverick

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.