Re: Rewrite Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 13, 2008 at 10:59 AM, Hayward Lam <hayward.lam@xxxxxxxxx> wrote:
> I need to support the ARK (Archive Resource Key) spec which requires URL
> ending with "?" and "??". For example:
>
> http://domain.com/ark:/12345/t41290?
>  http://domain.com/ark:/12345/t41290??
>
> 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: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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux