# F5 Irule for maintenance page on application

**URL:** <https://community.f5.com/t/f5-irule-for-maintenance-page-on-application/74873>\
**Category:** Water Cooler\
**Tags:** irules, big-ip-ltm, maintenance-page\
**Created:** [July 24, 2024, 12:18pm UTC](https://community.f5.com/t/f5-irule-for-maintenance-page-on-application/74873 "2024-07-24T12:18:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vshah](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vshah](https://community.f5.com/u/Vshah)\
**Post date:** [July 24, 2024, 12:18pm UTC](https://community.f5.com/t/f5-irule-for-maintenance-page-on-application/74873/1 "2024-07-24T12:18:38Z")

</div>

Hello All,

Is it possible to use the page screenshot(jpg) on ifile and call it on irule

when HTTP\_REQUEST {  
&nbsp; &nbsp;# Retrieve the file contents, send it in an HTTP 200 response and clear the temporary variable  
&nbsp; &nbsp;set ifileContent [ifile get “test\_application\_name”]  
&nbsp; &nbsp;HTTP::respond 200 content $ifileContent  
&nbsp; &nbsp;unset ifileContent  
}

---

<div class="post-metadata">

**Author:** ![jaikumar\_f5](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jaikumar\_f5](https://community.f5.com/u/jaikumar_f5)\
**Post date:** [July 24, 2024, 3:22pm UTC](https://community.f5.com/t/f5-irule-for-maintenance-page-on-application/74873/2 "2024-07-24T15:22:23Z")

</div>

Yes it’s doable and it’s pretty straight forward. I hope the vip that you are planning to apply to, is a maintenance vip as i see in your irule you don’t have any if else block. So it will apply for everything that’s going to hit this.

---

<div class="post-metadata">

**Author:** ![Vshah](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vshah](https://community.f5.com/u/Vshah)\
**Post date:** [July 25, 2024, 6:24am UTC](https://community.f5.com/t/f5-irule-for-maintenance-page-on-application/74873/3 "2024-07-25T06:24:38Z")

</div>

I have applied the JPG file and when I am applying to the VIP its giving me an error “ifile is not present”.
