>Number: 5432 >Category: mod_rewrite >Synopsis: Rewrite with redirect ignore parameters to path segments. >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Dec 7 02:30:01 PST 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.9 >Environment: Solaris 2.7. gcc 2.8.2. >Description: I'm using Apache 1.3.9 and mod_rewrite with a servlet engine(ATG Dynamo 3.5). The servlet engine generates session ids as parameters to HTTP path segments (as specified in rfc-2396), see the example for how the URLs look like. The session id parameter is stripped when we do a redirect(and we do ofcourse loose the associated user session). This is not a problem if we use mod_rewrite without redirecting and query parameters are also part of the redirect.
Here is the relevant extract from httpd.conf : RewriteEngine on RewriteRule ^/pubs/somesite/(.*$) /$1 [R] >How-To-Repeat: http://prodtest.somesite.de/pubs/somesite/template/;$sessionid$3QJML0YAAAAADQFIAHWCFEQ >Fix: I think the mod_rewrite module should keep path segment parameters when it does a redirect. I haven't looked into the source code to have any specific suggestion on fixes in the code. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]