Forum Discussion

Mazen2006_14317's avatar
Mazen2006_14317
Icon for Nimbostratus rankNimbostratus
Mar 26, 2014

irule redirect to maintenance page

Hello,

I need to redirect traffic to a maintenance html page on an external server. How can i call the page in my irule.
Note that the node that host my maintenance page is on partition CLI03_INTE of my ltm and the VS that use the redirect irule is on partition CLI01_COPROD
node hosting maintenance html page: cnlvip-fe-media.ext1.cdn 172.19.224.244%3 on partition CLI03_INTE
uri: /media_cpa/sfr/cpprospect/maintenence/maintenance.html and 
 /media_cpa/sfr/cpprospect/maintenence/maintenance.jpg

here's the irule i wrote:
  when HTTP_REQUEST {
    if {  [string tolower [HTTP::uri]] starts_with "/necpf/vod-i1-64/cpprospect/" } {
        HTTP::redirect "http:// ????
                  }
}

3 Replies

  • JRahm_128324's avatar
    JRahm_128324
    Historic F5 Account
    can you clarify the circumstances in which the maintenance page will trigger, and what the URL needs to be when sent to the maintenance node? Just FYI, you can store an html, image, css, and/or javascript file on the BIG-IP in iFiles and host the maintenance page locally in an iRule.
  • The need is to redirect the traffic to a page html on an external server when uri starts with /necpf/vod/cpprospect/.

  • The need is to redirect the traffic to a page html on an external server when uri starts with /necpf/vod/cpprospect/.