Forum Discussion
Azerturkbank
Nimbostratus
Nov 04, 2019Redirect IP request to the name irule
Hello friends. I am experiencing with the issue that I can not handle. I wrote irule that when someone send request to the f5 by using its IP address like https://10.10.10.15/xxx, redirect it to p...
gersbah
Cirrostratus
Nov 04, 2019elseif { ([HTTP::host] contains "10.10.10.15") } {
HTTP::redirect "https://[HTTP::host]/yyy"
}
This redirects back to the same host the user entered, which as per the if condition is "10.10.10.15"
You would want to do HTTP::redirect "https://webserver.test.local/yyy" in this branch.
Or just do that for all three redirects, because for the first one it doesn't matter and in the second one [HTTP::host] could also be the IP address.
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