Forum Discussion
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 }
- Simon_Blakely
Employee
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.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com