Forum Discussion
Nolan_Jensen
Nov 18, 2020Cirrostratus
Redirect to portion of a query string?
Hello All, I am trying to figure out correct code for an iRule to redirect to a different host and append just a portion of the query string to the end of that redirect. Example: If custome...
- Nov 18, 2020
Hi Nolan Jensen,
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "test.aspx" } { HTTP::redirect "https://domain2.com/[URI::query [HTTP::uri] account]" } }
Nov 18, 2020
Hi Nolan Jensen,
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "test.aspx" } {
HTTP::redirect "https://domain2.com/[URI::query [HTTP::uri] account]"
}
}
- Nolan_JensenNov 18, 2020Cirrostratus
thank you for the response. I will let you know if it works once I have a chance to test it.
- Nolan_JensenNov 19, 2020Cirrostratus
Sorry for slow response. That did work. thank you very much!
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