IIS 7 and Above
Need a temporary IIS redirect to a page for 10 seconds, then continue...
Last post Sep 18, 2019 08:19 AM by Yuk Ding
Sep 18, 2019 01:39 AM|potvin48|LINK
We have some IIS web servers running several (50+) applications. We want to display a message to the users of all applications on our servers, then we want them to be able to continue to their originally intended destination.
So, someone goes to https://www.example.com/AppName - I want them to be directed to something like https://www.example.com/LookHereFor10Seconds.html FIRST,
and then after 10 seconds, they would continue on to https://www.example.com/appname (their original request).
I'm thinking we'd want this page to load just one time per visitor per application.
Any ideas how I can implement this entirely within IIS without touching any of the application code?
Thanks in advance for any help you can provide!
Sep 18, 2019 08:19 AM|Yuk Ding|LINK
I think it is almost impossible to achieve this with pure IIS original module and extension. You still require to make some change in code level.
Your requirement sonds like cookie authentication.
First of you , you need to redirect https://www.example.com/AppName to URL like
. So that the webpage will know which URL should be redirected back.
Secondly, you may require to develop a custom httpmodule to fetch appname from query string and inject html <META HTTP-EQUIV="REFRESH" CONTENT="10;URL=appname"> to response content body for LookHereFor10Seconds.html.
If the reply is helpful, it is appreciated if you could mark it as answer.