aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/http/status/301/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/http/status/301/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/http/status/301/index.html')
-rw-r--r--files/ja/web/http/status/301/index.html63
1 files changed, 63 insertions, 0 deletions
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
+---
+<div>{{HTTPSidebar}}</div>
+
+<p>The HyperText Transfer Protocol (HTTP) の <code><strong>301 Moved Permanently</strong></code> リダイレクトステータスコードは、リクエストされたリソースが {{HTTPHeader("Location")}} ヘッダーで示された URL へ完全に移動したことを示します。ブラウザーはこのページにリダイレクトし、検索エンジンはリソースへのリンクを更新します (「SEO 用語」では、「リンクジュース」が新しい URL に送られたと言われます)。</p>
+
+<p>リダイレクトが行われるとき、仕様書ではメソッド (と本文) を変更しないよう要求していますが、すべてのユーザーエージェントが従っている訳ではありません。 - まだこの種のバグが発生するソフトウェアが見つかるでしょう。従って、 <code>301</code> のコードは {{HTTPMethod("GET")}} または {{HTTPMethod("HEAD")}} メソッドのみに使用し、このステータスでは明確にメソッドの変更が禁止されているので、 {{HTTPMethod("POST")}} メソッドでは代わりに {{HTTPStatus("308", "308 Permanent Redirect")}} を使用することが推奨されています。</p>
+
+<h2 id="Status" name="Status">ステータス</h2>
+
+<pre class="syntaxbox notranslate">301 Moved Permanently</pre>
+
+<h2 id="Example" name="Example">例</h2>
+
+<h3 id="Client_request" name="Client_request">クライアントリクエスト</h3>
+
+<pre class="notranslate">GET /index.php HTTP/1.1
+Host: www.example.org</pre>
+
+<h3 id="Server_response" name="Server_response">サーバーレスポンス</h3>
+
+<pre class="notranslate">HTTP/1.1 301 Moved Permanently
+Location: http://www.example.org/index.asp</pre>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">題名</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{RFC("7231", "301 Moved Permanently" , "6.4.2")}}</td>
+ <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p class="hidden">このページの互換表は構造化データから生成されます。もしデータに貢献したい場合は、<a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトし、プルリクエストを送信してください。</p>
+
+<p>{{Compat("http.status.301")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{HTTPStatus("308", "308 Permanent Redirect")}}</li>
+ <li>{{HTTPStatus("302", "302 Found")}}: 一時リダイレクト</li>
+</ul>