Hi,
I've got a bit of an issue with mod_rewrite and I was hoping someone
could give me a little help :-)
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. At the end of the process, apache
passes the url to resin with the #s in place. Unfortunately, Resin falls
over if you put hashes in the URL!
So, I need to do one of two things:
1. Stop apache replacing the escape sequences
2. Get mod_rewrite to replace all the #s with %23s again!
I've tried option 2, but mod_rewrite doesn't seem happy doing
that.......Does anyone have any good ideas??
cheers,
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]