Forum Discussion
Nilendu
Nimbostratus
Jun 05, 2019Need iRule for URL redirection with part of URI as dynamic
I am looking for an iRule such as https://www.abc.com/cat/dog/tiger.aspx with "anything" after that should redirected as https://www.xyz.com//cat/dog/tiger with "anything" after that. Exa...
Stanislas_Piro2
Cumulonimbus
Jun 05, 2019use this irule :
when HTTP_REQUEST {
if {[HTTP::host] equals "www.abc.com" && [HTTP::path] equals "/cat/dog/tiger.aspx"} {
HTTP::redirect "https://www.xyz.com//cat/dog/tiger[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
