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_51&mode=4
Thank you for any assistance you can provide!
- Andy_McGrath
Cumulonimbus
The 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] } }
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