Forum Discussion
Korai
Nimbostratus
Mar 01, 2021Redirect Two URLs to Single URL
Hi, I have a requirement to redirect traffic for two URLs to a single URL by using irule. Suppose traffic for https://abc.com/path1 and for https://xyz.com/path2 should be redirected to h...
jaikumar_f5
Noctilucent
Mar 01, 2021Something like this should do,
if {(([HTTP::host] eq "abc.com") && ([string tolower [HTTP::uri]] starts_with "/path1")) || (([HTTP::host] eq "xyz.com") && ([string tolower [HTTP::uri]] starts_with "/path2")) } {
HTTP::redirect https://newsite.com/path3/abc
}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