httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Claridge <>
Subject Re: [users@httpd] mod_rewrite problem
Date Thu, 09 Mar 2006 10:24:17 GMT
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]
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........


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