You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/02/29 13:51:46 UTC
[Bug 44509] New: Avoid query strings getting copied over to the
target url
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
[Bug 44509] Avoid query strings getting copied over to the target url
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44509
Ruediger Pluem <rp...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2008-02-29 05:36:51 ---
This is indeed no bug and should have tried in the user support forum instead
of asking here. The following rewriterule will solve your problem:
RewriteCond %{QUERY_STRING} a=b [NC]
RewriteRule ^/rewrite/query/string http://www.website.com/? [R=301,L,NS,NC]
--
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