You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Leos Bitto <Le...@eurotel.cz> on 2001/09/20 14:22:22 UTC
mod_alias/8372: "Redirect" between and cuts off question mark and the following part of URL
>Number: 8372
>Category: mod_alias
>Synopsis: "Redirect" between <Directory> and </Directory> 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 <Directory "/usr/local/apache/docs"> and </Directory>. /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 <ap...@Apache.Org> 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! ]