【问题标题】:Redirect a page to an aspx page works in chrome but not in IE将页面重定向到 aspx 页面在 chrome 中有效,但在 IE 中无效
【发布时间】:2015-03-02 23:32:14
【问题描述】:

我搜索了一种将“C:\inetpub\wwwroot”中的 index.htm 页面重定向到我的 aspx 登录页面的方法。我在 index.htm 文件中添加了这一行:

<meta http-equiv="refresh" content="0; url=http://hfp.com/login.aspx" />

它在 chrome 中工作,但是当我用 IE 打开它时显示一个空白页面。为什么 IE 不重定向它以及如何使它成为可能?

【问题讨论】:

  • 语法问题可能吗?试试content="0;URL='http://hfp.com/login.aspx'"
  • 也可以尝试使用URL大写。

标签: html google-chrome internet-explorer redirect meta


【解决方案1】:

这是 IE 中的一个安全功能,如果您的浏览配置设置为“高”级别,您无法刷新到 IE 中的另一个页面,或者您必须降低安全级别

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-08
    • 1970-01-01
    • 2014-09-11
    • 2021-05-09
    • 1970-01-01
    相关资源
    最近更新 更多