Forum Discussion
Chris_Chaloux_1
Nimbostratus
Dec 08, 2008Avoiding the loop...
All -
A new question that I'm working on in my mind.
Lets say I have a URL, i.e. www.mysite.com. For various reasons, I want to put up a "temp out of service" page that contains htm...
hoolio
Cirrostratus
Dec 08, 2008Hi Chris,
Assuming there is no content under /error/ that isn't referenced by the /error/service.html page, you can change your check from 'ne /error/service.html' to 'starts_with /errror/':
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] equals "mysite.com") and not ([string tolower [HTTP::uri]] starts_with "/error/") } {
HTTP::redirect "http://mysite.com/error/service.html"
}
}
Aaron
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