Forum Discussion
Jeff_Barnett_41
Nimbostratus
Dec 24, 2014URL redirect to another
I am new to the F5 I need to create a simple Irule that redirects one URL to another. here is what I have, that does not work:
when HTTP_REQUEST {
if { (([HTTP::host] equals "abc.com/sonar"))...
nitass
Employee
Dec 24, 2014can you try something like this?
when HTTP_REQUEST {
if { [HTTP::host] equals "abc.com" and [HTTP::path] equals "/sonar" } {
HTTP::redirect "https://abc.com/sonar/sessions/new?return_to=%2Fsonar%2F"
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
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