asp.nethtmliiswebisapi-redirect

URL Redirection from a html page to an .aspx page


I have a requirement where i have to use url redirection in my legacy web page (basically its a complete static html page).

The requirement for me is to redirect the user everytime, from the static html page to a .aspx page

i.e if my earlier page were found to be at

http://web.vatsag.com/app/en/downloadsite.htm

then i have to redirect to the following page (.aspx)

http://web.vatsag.com/app/newdownloadsite.aspx

I went through the following links, which talks mainly redirection w.r.t ASP.NET

http://www.codeproject.com/Articles/2538/URL-Rewriting-with-ASP-NET

However,

Since the pages are html. I presume by default not handled by the ASP.NET ISAPI filter

Can anyone help me in achieving the same using any of the alternatives specified below ?

  1. Any particular setting that could be done on the IIS Side

  2. Programmatically achieving redirection using Meta Refresh (although i have heard this method is highly discouraged)

Thanks in advance

VATSAG


Solution

  • There are different options of doing so described here. You can basically add a meta tag to refresh the page after a second to aspx page or use javascript.