从HTML页面URL重定向到.aspx页 [英] URL Redirection from a html page to an .aspx page
问题描述
我有一个要求,在那里我必须使用URL重定向在我的传统网页(基本上它的一个完整的静态html页)。
I have a requirement where i have to use url redirection in my legacy web page (basically its a complete static html page).
对于我的要求是将用户重定向每次,从静态html页面到.aspx页
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
然后我要重定向到以下网页(的.aspx)
then i have to redirect to the following page (.aspx)
http://web.vatsag.com/app/newdownloadsite.aspx
我通过以下链接,其中主要谈到重定向w.r.t ASP.NET去
I went through the following links, which talks mainly redirection w.r.t ASP.NET
HTTP://www.$c$ cproject.com/Articles/2538/URL-Rewriting-with-ASP-NET
然而,
既然页面的HTML。我默认presume不是由ASP.NET ISAPI筛选器处理
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 ?
-
这可以在IIS端做任何特殊设置
Any particular setting that could be done on the IIS Side
编程实现使用元刷新(虽然我听说过这个方法非常泄气)重定向
Programmatically achieving redirection using Meta Refresh (although i have heard this method is highly discouraged)
在此先感谢
VATSAG
推荐答案
有做着这样描述的不同选项的此处。你基本上可以添加一个meta标签刷新页面后,第二个ASPX页面或使用JavaScript。
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.
这篇关于从HTML页面URL重定向到.aspx页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!