From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/http/status/301/index.html | 63 +++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 files/ja/web/http/status/301/index.html (limited to 'files/ja/web/http/status/301') diff --git a/files/ja/web/http/status/301/index.html b/files/ja/web/http/status/301/index.html new file mode 100644 index 0000000000..ffd70bfad4 --- /dev/null +++ b/files/ja/web/http/status/301/index.html @@ -0,0 +1,63 @@ +--- +title: 301 Moved Permanently +slug: Web/HTTP/Status/301 +tags: + - HTTP + - Redirect + - Reference + - Status code + - ステータスコード + - リダイレクト +translation_of: Web/HTTP/Status/301 +--- +
{{HTTPSidebar}}
+ +

The HyperText Transfer Protocol (HTTP) の 301 Moved Permanently リダイレクトステータスコードは、リクエストされたリソースが {{HTTPHeader("Location")}} ヘッダーで示された URL へ完全に移動したことを示します。ブラウザーはこのページにリダイレクトし、検索エンジンはリソースへのリンクを更新します (「SEO 用語」では、「リンクジュース」が新しい URL に送られたと言われます)。

+ +

リダイレクトが行われるとき、仕様書ではメソッド (と本文) を変更しないよう要求していますが、すべてのユーザーエージェントが従っている訳ではありません。 - まだこの種のバグが発生するソフトウェアが見つかるでしょう。従って、 301 のコードは {{HTTPMethod("GET")}} または {{HTTPMethod("HEAD")}} メソッドのみに使用し、このステータスでは明確にメソッドの変更が禁止されているので、 {{HTTPMethod("POST")}} メソッドでは代わりに {{HTTPStatus("308", "308 Permanent Redirect")}} を使用することが推奨されています。

+ +

ステータス

+ +
301 Moved Permanently
+ +

+ +

クライアントリクエスト

+ +
GET /index.php HTTP/1.1
+Host: www.example.org
+ +

サーバーレスポンス

+ +
HTTP/1.1 301 Moved Permanently
+Location: http://www.example.org/index.asp
+ +

仕様書

+ + + + + + + + + + + + + + +
仕様書題名
{{RFC("7231", "301 Moved Permanently" , "6.4.2")}}Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
+ +

ブラウザーの互換性

+ + + +

{{Compat("http.status.301")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf