Re: [users@httpd] mod_rewrite problem

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

 



On Fri, Mar 03, 2006 at 02:58:44PM +0000, Matthew Claridge wrote:

I'm using version 2.0.46, with Resin (not that important whats behind apache...). I have the following config set up to rewrite some elements of our dynamic URLs:

      RewriteEngine On
      ProxyMaxForwards 200
      RewriteLog "/var/log/httpd/driveline/driveline-staging.rewrite.log"
      RewriteLogLevel 3
      RewriteRule ^/(.*)dinoissesj(.*)$ /$1jsessionid$2 [N,P]
      RewriteRule ^/(.*)__E__(.*)$ /$1=$2 [N,P]
      RewriteRule ^/(.*)__A__(.*)$ /$1&$2 [N,P]
      RewriteRule ^/(.*)__Q__(.*)$ /$1?$2 [N,P]


The problem is that our URLs include hashes ('#'), which are escaped as '%23' in the actual URL. What seems to be happening, from looking at the rewrite log file, is that Apache successfully processes all those rewrite rules, but in the process of actually processing the initial request, converts all the %23s to #s.

Have you tried adding the 'NE' flaga to your flagset:

   [N,P,NE]

?


--n

Thanks for the suggestion, but this doesn't seem to make any difference at all.

We've come up with another possibility, that it may actually be Apache that is throwing away everything after the first '#' (or%23) it encounters in the url. Either way, it seems like Apache is still converting our %23s to #s and is still refusing to rewrite them back again :-)

Back to the drawing board........

Matt




---------------------------------------------------------------------
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