httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 44509] New: Avoid query strings getting copied over to the target url
Date Fri, 29 Feb 2008 12:51:46 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44509

           Summary: Avoid query strings getting copied over to the target
                    url
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P4
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mani55119@yahoo.com


When i set up a rewrite rule with a Query String condition, the query string
gets copied over and appends to the target url which i don't want. How can I
prevent it from happening?

Here is the rule.

RewriteCond %{QUERY_STRING} a=b [NC]
RewriteRule ^/rewrite/query/string http://www.website.com/ [R=301,L,NS,NC]

When i hit the source url, it fires the rewrite rule, but it adds the query
string too. How do we prevent the quesry string from getting added to the
target?

http://www.website.com/?a=b

I thought it was a bug with Apache, but, there might be an option to not let it
happen. Sorry to log this in the bugs category.

Any help would greatly be appreciated.

Thanks
Mani


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message