1

したがって、私のドメインは、Web サイトの最初のページをロードするリダイレクト ファイルを指しています。

それは過去に働いています。ただし、ホストは最近サーバーを切り替え、シームレスになると述べました。www.AiySlumlords.comに移動すると、リダイレクトにヒットし、2 番目のページの読み込みに失敗します。ただし、失敗した後に更新を押すと、ロードされますか?

これが機能しない理由がわかりません。ここにリダイレクトファイルがあります

<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>
4

1 に答える 1

0

サーバーは IIS と ASP.NET を使用しているため、ASP.NET を使用してクライアントをリダイレクトすることをお勧めします。たとえば、次のコンテンツを含む index.aspx ページを作成します。

<%
  Response.Redirect("~/Home/f1.html", false);
  Response.StatusCode = (int)System.Net.HttpStatusCode.MovedPermanently;
  Response.End();
%>
于 2013-08-12T10:58:23.253 に答える