Received: (qmail 58432 invoked by uid 501); 20 Sep 2001 12:22:22 -0000 Message-Id: <20010920122222.58431.qmail@apache.org> Date: 20 Sep 2001 12:22:22 -0000 From: Leos Bitto Reply-To: Leos_Bitto@eurotel.cz To: submit@bugz.apache.org Subject: "Redirect" between and cuts off question mark and the following part of URL X-Send-Pr-Version: 3.110 >Number: 8372 >Category: mod_alias >Synopsis: "Redirect" between and cuts off question mark and the following part of URL >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Sep 20 05:30:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Leos_Bitto@eurotel.cz >Release: 1.3.20 >Organization: apache >Environment: Red Hat Linux 6.2 with all official updates from ftp.redhat.com (RPM packages) up to date, official release of Apache 1.3.20 compiled with "./configure --prefix=/apache --enable-module=all --enable-shared=max". >Description: What do I want: To redirect all requests coming to my server with URI's starting with /something to http://www.somewhere.com/somethingelse. I do want the rest of the URI, following /something, to be appended at the end of the new URL (following somethingelse). Scenario 1: Put "Redirect /something http://www.somewhere.com/somethingelse" between and . /usr/local/apache/docs is the DocumentRoot. Scenario 2: Put "Redirect /something http://www.somewhere.com/somethingelse" as the last line in httpd.conf. Scenario 2 works perfectly. The problem, and the bug which I am reporting, is that scenario 1 does not work correctly for URI's which contain question mark. It cuts off the question mark and all following characters. Example: /something/script?param=value is redirected to http://www.somewhere.com/somethingelse/script and ?param=value is lost! >How-To-Repeat: see full description >Fix: document this misbehaviour for 1.3.20 and fix it (if possible) for 1.3.21 >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]