One more thing.... --- André Malo <nd@xxxxxxxxx> wrote: > * <ogjunk-httpd1@xxxxxxxxx> wrote: > > > Hi, > > > > I "solved" this problem by substituting "%20" with "+" characters. > > Apparently, mod_rewrite doesn't convert "+" to spaces as it does > with > > "%20". > > Your "problem" is home-made. mod_rewrite always works on the > unescaped > URI-path and you're explicitly specifying by using [NE] that no > escaping > on the final string should be done. So you end up with unescaped > characters > in this final string (not only spaces will be a problem). Just to make sure I got this - are you saying that if I remove [NE] from the RewriteRule, then mod_rewrite will NOT convert %20 in a requested URI to a space? If that is what you are saying, then I think that is incorrect. Try this: http://simpy.com/user/otis/search/apache%20httpd That URL is handled by the following RewriteRule: RewriteRule ^/user/(.*)/search/(.*)$ /simpy/User.do?username=$1&q=$2 [P,env=URR:1] This results in the following request under the hood: GET /simpy/User.do?username=otis&q=apache httpd HTTP/1.1" 400 369 "-" "-" ^^^^^^^^^^^^ Note the space between "apache" and "httpd". On the other hand, this works: http://simpy.com/user/otis/search/apache+httpd Thanks, Otis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simpy -- http://www.simpy.com/ -- Find it. Tag it. Share it. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx