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 }

You cannot create a second response in an irule after a delay, because HTTP is a request-response protocol (unless you implement AJAX in your splash-page).

You can only do this within your splash page HTML.

e.g. https://answers.squarespace.com/questions/26762/how-can-i-redirect-from-a-splash-page-to-the-home-page-after-a-few-seconds.html