Forum Discussion
Yesh1923
Nimbostratus
Jan 17, 2023Multiple http_request iRules not working Same Virtual server
how to merge this 2 irule when HTTP_REQUEST { if { ([string tolower [HTTP::host]] equals "energy.com") HTTP::respond 301 location "https://www.[HTTP::host][HTTP::uri]" Connection Close } } ...
Yesh1923
Nimbostratus
Jan 20, 2023i add below but its not working as expected , web page not loading
when HTTP_REQUEST {
if { [class match [HTTP::header values "True-Client-IP"] eq mo-client-ip] } {
HTTP::respond 400 content "site currently unavailable, Please try again later"
} elseif { [class match [HTTP::host] eq mo-domain] } {
HTTP::respond 301 Location "https://www.[HTTP::host][HTTP::uri]" "Connection" "Close"
return
}
}
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
