Forum Discussion
Qamar_Zia_13515
Nimbostratus
Feb 08, 2017IRULE Help
Hi Folks,
Need you help to write an irule for the below requirement:
HTTP request http://10.10.10.10 should be redirected to https://abc.com
Http host containing the IP address should be re...
Jad_Tabbara__J1
Cirrostratus
Feb 09, 2017Hello Qamar,
You can use this example of code to do that.
You have to add this irule to ressources of the VS listening on 10.10.10.10:80
when HTTP_REQUEST {
if { [HTTP::host] eq "10.10.10.10" } {
HTTP::respond 301 noserver Location https://abc.com
}
} Hope that it helps
Regards
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