Forum Discussion
Joshua_Mason_34
Nimbostratus
Jan 29, 2018http redirect stripping off URI and maintaining variable serial number
iRule redirect assistance needed. Attempting to perform the below redirect where the serial numbers (SN) will be variable.
to
https://mwafetest.test.com/ApproveReject.aspx?SN=2241_5...
Andy_McGrath
Cumulonimbus
Jan 29, 2018The bit you want to save is the HTTP::query basic iRule to change Location header keeping the HTTP query string:
when HTTP_RESPONSE {
if { [HTTP::header exists Location] } {
HTTP::header replace Location https://mwafetest.test.com/ApproveReject.aspx?[HTTP::query]
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
