httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Rewrite Problem
Date Wed, 14 May 2008 00:04:24 GMT
On Tue, May 13, 2008 at 10:59 AM, Hayward Lam <> wrote:
> I need to support the ARK (Archive Resource Key) spec which requires URL
> ending with "?" and "??". For example:
> Since "?" is used for request parameter, when it is ending with "?" by
> itself, my Apache Tomcat ignores it.
> I am thinking about using Apache Http's mod_rewrite to map "?" and "??" to
> request parameters. However, rewrite rules don't see query string.
> Is there a way to achieve this? Any help would be greatly appreciated.

That's a pretty lame spec if it requires an unencoded ? to mean
something other than the start of a query string.

Anyway, you can examine the raw request in mod_rewrite by using a
RewriteCond against the variable %{THE_REQUEST}. That should allow you
to match against and substitute the question mark.

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