Forum Discussion
isavic
Nimbostratus
Dec 30, 2020Irule redirect in F5 LTM
Hi, I need to redirect this URI: https://test.com/ibe/common/advancedCarSearch.do?changeLocale=en_CA to https://www.test.com/en/travel/car-unavailable.html and https://test.com/ibe/common/ad...
Dojs
Cirrostratus
Dec 30, 2020I believe that something like below could help you:
ltm rule locale_redirect {
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] eq "en_CA") } {
HTTP::redirect "https://www.test.com/en/travel/car-unavailable.html"
}
elseif { ([string tolower [HTTP::uri]] eq "fr_FR") } {
HTTP::redirect "https://test.com/fr/voyages/voiture-indisponible.html"
}
}
}
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