Forum Discussion
craig_lee10_177
Nimbostratus
Jan 18, 2013irule 404 page
Hi
I am wondering if someone can point me in the right direction. Basically the below works fine when I try and go to a directory that doesn’t exists
when HTTP_RESPONSE {
i...
What_Lies_Bene1
Cirrostratus
Jan 18, 2013A quick example;
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/404/404" } {
switch -glob [string tolower[HTTP::uri]] {
"*/favicon.ico" { HTTP::respond 200 content [ifile get favicon_ico] }
"*/reset.css" { HTTP::respond 200 content [ifile get reset_css] }
}
}
}
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