网站加载失败,但在刷新加载时



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

它在过去起过作用。不过,该主机最近切换了服务器,并表示这将是无缝的。现在,当你导航到www.AiySlumlords.com时,它会点击重定向,然后无法加载第二个页面。但是,如果你在刷新失败后点击刷新,那么它就会加载?

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

<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();
%>

相关内容

最新更新