JoshBarrow
Nov 10, 2020Cirrus
Need help with iFile HTML usage
I have an iFile that I want to use to display a redirect maintenance page. Here is what I have so far:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "site.domain.com"}{
switch [HTTP::uri] {
"/file.html" {HTTP::respond 200 content [ifile get "file.html"] }
default {HTTP::respond 200 content [ifile get "file.html"] }
}
}
}
My question here is that we have some iRules that reference different paths for site.domain.com. ex: site.domain.com/tree, /apple, etc. Will this overule the other iRule for the the different pathings on the site?