Forum Discussion

M_KA_339292's avatar
M_KA_339292
Icon for Nimbostratus rankNimbostratus
Nov 17, 2017

Splash File Redirect to original homepage within time frame using ifile html content

Hi Guys -

I really need you support at the current situation. I have created an irule and calling it to ifile the page is appears but i wanted to be the information page for few seconds then it should go original home page. i have tried many ways to trying to achieves but this is fails. Your input really appreciated. in the meanwhile i have trying to fix.

Here Irule i made it :-

when RULE_INIT { set static::refresh_time 5 set ifileContent [ifile get "/Common/maintenance-splash-page"]

            }

when HTTP_REQUEST { Retrieve the file contents, send it in an HTTP 200 response and clear the temporary variable set ifileContent [ifile get "/Common/maintenance-splash-page"] HTTP::respond 200 content $ifileContent unset ifileContent }