httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: [users@httpd] Query string encoding
Date Fri, 03 Apr 2009 16:15:34 GMT
Clodoaldo Pinto Neto wrote:
> I want to rewrite a url to a query string like this:
> from to
> or
> from to
> Using:
> RewriteRule ^(/([\w-()+]+))?/$ /?var=$2 [QSA]
> The problem i have is that the query string is passed to the
> application unencoded so the "+" is understood by the application as
> space. How to reencode the query string before it is passed to the
> application?
I don't really know why precisely, but I have a bad feeling about the 
above, in the sense that an initial URL like you show two examples above 
may lead to trouble at some point.

But assuming you insist..

You may want to lookup this page :
in the following sections :
Internal Function (escape)
External Rewriting Program

I have never used them, and I am not sure they allow to create the 
query-string part of the rewritten request.
But it's worth trying out.
Otherwise, mod_perl would be your friend.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message