Forum Discussion
jokragly
Dec 26, 2013Nimbostratus
parameter being stripped
I have a rewrite rule in place that is working correctly however they are asking that the parameter be passed through as well which is making it through in the URL bar but not to the webpage that is ...
Kevin_Stewart
Dec 26, 2013Employee
Try this:
when HTTP_REQUEST {
set query ""
if { [HTTP::query] ne "" } { set query "?[HTTP::query]" }
switch -glob [string tolower [HTTP::uri]] {
"/abc/generate*" {
HTTP::header replace Host "mydomain.local"
HTTP::uri "/OA_HTML/thisisatestGenerate.jsp${query}"
}
"/abc/validate*" {
HTTP::header replace Host "mydomain.local"
HTTP::uri "/OA_HTML/thisisatestValidate.jsp${query}"
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects