Forum Discussion
ishhyd82
Nimbostratus
Nov 01, 2019Irule to redirect public ip to url
Hi Team, Could you kindly advise for irule to redirect the public ip address to url name.
JG
Cumulonimbus
Nov 02, 2019If you know both the IP address and the hostname, then it would be something like the following:
when HTTP_REQUEST {
if { [HTTP::host] equals "1.2.3.4" } {
HTTP::redirect "https://example.com[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
