Html 网站无法加载,但正在刷新加载?

Html 网站无法加载,但正在刷新加载?,html,iis,redirect,Html,Iis,Redirect,因此,我的域指向一个重定向文件,该文件依次加载网站的第一页 这在过去是行之有效的。不过,主机最近更换了服务器,并表示这将是无缝的。现在,当您导航到它时,点击重定向,然后无法加载第二个页面。但是,如果在刷新失败后点击刷新,那么它会加载吗 我不知道为什么这不起作用。这是重定向文件 <html> <head> <title>A web page that points a browser to a different page after 2 seconds<

因此,我的域指向一个重定向文件,该文件依次加载网站的第一页

这在过去是行之有效的。不过,主机最近更换了服务器,并表示这将是无缝的。现在,当您导航到它时,点击重定向,然后无法加载第二个页面。但是,如果在刷新失败后点击刷新,那么它会加载吗

我不知道为什么这不起作用。这是重定向文件

<html>
<head>
<title>A web page that points a browser to a different page after 2 seconds</title>
<meta http-equiv="refresh" content="0; URL=./Home/f1.html">
<meta name="keywords" content="automatic redirection">
</head>
<body>
<p>If your browser doesn't automatically go there within a few seconds, you may want to go to <a href="./Home/f1.html">the destination</a> manually.</p>
</body>
</html>

两秒钟后将浏览器指向不同页面的网页
如果您的浏览器在几秒钟内没有自动转到该位置,您可能需要手动转到


由于您的服务器由IIS和ASP.NET提供支持,因此最好使用ASP.NET重定向您的客户端,例如,创建包含以下内容的index.aspx页面:

<%
  Response.Redirect("~/Home/f1.html", false);
  Response.StatusCode = (int)System.Net.HttpStatusCode.MovedPermanently;
  Response.End();
%>