Forum Discussion
Maintenance page irule was not working properly
Hi Gersbah ,
Please find the updated
irule
when HTTP_REQUEST {
if { [ active_members UAT_BOS_axisconnect-uat2_https_pool] < 1 } {
if { not ( [HTTP::uri] starts_with "/" ) }{
HTTP::uri "/"
}
HTTP::header replace Host "10.18.123.19"
pool Axisconnect-uat2_Redirect_SplashPage
}
}
- gersbahNov 08, 2019Cirrostratus
'if { not ( [HTTP::uri] starts_with "/" ) }' will never be true, because every URL starts with "/"
It's important that the maintenance page resources are in a separate folder (which does not exist in the actual productive application), because then you can simply select everything which is not in that folder and rewrite it to the maintenance page. Otherwise you will have to exclude the maintenance page files from the rewrite one by one.
Recent Discussions
Related Content
* 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