Maintenance page applied when VIP is UP

I notice as the maintenance page can be used only if servers are down behind the pool. Can an iRule be applied to a VIP which is up to redirect all users to the maintenance page?

Here is the iRule:

when HTTP_REQUEST {
    if { [HTTP::uri] eq "/" } {
        HTTP::respond 200 content [ifile get Maintenance-page-web]
    } elseif { [HTTP::uri] eq "/logo.gif" } {
        HTTP::respond 200 content [ifile get logo.gif]
    } else { discard }
}

LTM ver 11.5

Are you attempting to redirect all users, no matter the request, to the maintenance page? Or, based on the iRule you provided, is your goal only to redirect users requesting the root path?

All users needs to be redirected to maintenance page.