IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Do you really need the QSA?
From the mod_rewrite docs:
qsappend|QSA' (query string append)
This flag forces the rewrite engine to append a query string part of the substitution string to the existing string, instead of replacing it.
That looks like setting up for trouble in this case.

(.) matches a single character (the question mark) and should result in http://foobar.com/ redirect?1=five?1=one&2=two

Try RewriteRule (.*)1=one(.*) http://foobar.com/$11=five$2 [P,NC,L]

Other than that, I'm not sure if the condition rule triggers: it should be "RewriteCond", and one of the parameters is missing.
New tried that
everything after the ? is ignored.

will play around tomorrow
apparently this is a highly visible issue
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
New It is possible...
The key is to use the RewriteCond and then use the % backrefs:

RewriteCond %{QUERY_STRING} (.*)1=one(.*)
RewriteRule index.html redirect.html?%11=five%2 [L]


(URL and host names don't match your example, but this is what I got working on my server. The rest shouldn't be to hard to reconstruct.)
New thanx, turns out the rewrite doesnt help as the app
mangles the query string in any case
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
     apache mod_rewrite question - (boxley) - (8)
         Do you really need the QSA? - (scoenye) - (3)
             tried that - (boxley) - (2)
                 It is possible... - (scoenye) - (1)
                     thanx, turns out the rewrite doesnt help as the app - (boxley)
         I'd be moving it out of the rewrite. - (static) - (3)
             ed zachery - (boxley) - (2)
                 Hey, Scott ... - (drook) - (1)
                     its easy enuff - (boxley)

He looks like a bad Geraldo Rivera cosplayer.
117 ms