{"id":180,"date":"2016-12-08T01:12:11","date_gmt":"2016-12-07T16:12:11","guid":{"rendered":"http:\/\/memo.baseline-lib.com\/?p=180"},"modified":"2017-03-02T08:55:09","modified_gmt":"2017-03-01T23:55:09","slug":"301%e3%83%bb302%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/memo.baseline-lib.com\/?p=180","title":{"rendered":"301\u30fb302\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u6cd5"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#301302\"><span class=\"toc_number toc_depth_1\">1<\/span> \u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u6cd5301\u3068302\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u6cd5\u306e\u9055\u3044<\/a><\/li><li><a href=\"#301\"><span class=\"toc_number toc_depth_1\">2<\/span> 301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/a><\/li><li><a href=\"#www\"><span class=\"toc_number toc_depth_1\">3<\/span> www\u6709\u7121\u306e\u7d71\u4e00<\/a><\/li><li><a href=\"#301-2\"><span class=\"toc_number toc_depth_1\">4<\/span> \u30b5\u30af\u30e9\u30b5\u30fc\u30d0\u30fc\u3067\u306e301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u6cd5<\/a><\/li><\/ul><\/div>\n<h3><span id=\"301302\">\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u6cd5301\u3068302\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u6cd5\u306e\u9055\u3044<\/span><\/h3>\n<p>\u307e\u305a\u306f\u3058\u3081\u306b301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3068302\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u9055\u3044\u3092\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u304c301\u30fb302\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u9055\u3044\u3067\u3059\u3002<\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n<th>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u5f0f<\/th>\n<th>301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/th>\n<th class=\"t_right\">302\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/th>\n<\/tr>\n<tr>\n<td class=\"td_bk\">\u610f\u5473\u5408\u3044<\/td>\n<td>\u6052\u4e45\u7684\u30fb\u6c38\u4e45\u7684\u306b\u8ee2\u9001(\u30ea\u30c0\u30a4\u30ec\u30af\u30c8)<\/td>\n<td class=\"t_right\">\u4e00\u6642\u7684\u8ee2\u9001(\u30ea\u30c0\u30a4\u30ec\u30af\u30c8)<\/td>\n<\/tr>\n<tr>\n<td class=\"td_bk\">\u5185\u5bb9\u30fb\u7528\u9014<\/td>\n<td>\u30c9\u30e1\u30a4\u30f3\u5909\u66f4<br \/>HP\u306e\u7d50\u5408<\/td>\n<td class=\"t_right\">\u30e2\u30d0\u30a4\u30eb\u30da\u30fc\u30b8\u8ee2\u9001<\/td>\n<\/tr>\n<tr>\n<td class=\"td_bk\">\u30ad\u30e3\u30c3\u30b7\u30e5<\/td>\n<td>\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b<\/td>\n<td class=\"t_right\">\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td class=\"td_bk\">PageRank<\/td>\n<td>\u6e21\u3059(\u73fe\u5728\u306f\u4e0d\u660e)<\/td>\n<td class=\"t_right\">\u6e21\u3055\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td class=\"td_bk\">\u691c\u7d22\u9806\u4f4d\u3078\u306e\u5f71\u97ff<\/td>\n<td>\u7279\u306b\u306a\u3057(\u73fe\u5728\u306f\u4e0d\u660e)<\/td>\n<td class=\"t_right\">\u7279\u306b\u306a\u3057<\/td>\n<\/tr>\n<\/table>\n<h3><span id=\"301\">301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/span><\/h3>\n<p>\u53e4\u3044\u30c9\u30e1\u30a4\u30f3\u3067\u904b\u55b6\u3057\u3066\u3044\u305f\u30da\u30fc\u30b8\u3092\u65b0\u3057\u3044\u30c9\u30e1\u30a4\u30f3\u306e\u30da\u30fc\u30b8\u306b\u5909\u66f4\u3059\u308b\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092.htaccess\u306b\u8a18\u8ff0\u3057\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u305f\u3044\u30da\u30fc\u30b8\u306e\u76f4\u4e0b\u306b\u8a2d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070old.com\u3092new.com\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u305f\u3044\u5834\u5408\u306f.htaccess\u3092old.com\u306e\u76f4\u4e0b\u306b\u8a2d\u7f6e<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nsuPHP_ConfigPath \/home\/hoge\/old.com\/xserver_php\/\r\nAddHandler fcgid-script .php .phps\r\nFCGIWrapper &quot;\/home\/hoge\/old.com\/xserver_php\/php-cgi&quot; .php\r\nFCGIWrapper &quot;\/home\/hoge\/old.com\/xserver_php\/php-cgi&quot; .phps\r\n\r\nRewriteCond %{HTTP_HOST} ^(old\\.com)(:80)? [NC]\r\nRewriteRule ^(.*) http:\/\/new.com\/$1 [R=301,L]\r\n\r\n# BEGIN WordPress\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n&lt;\/IfModule&gt;\r\n# END WordPress\r\n<\/pre>\n<p>\u4e0b\u8a18\u306b\u8a18\u8ff0\u3057\u3066\u308b\u30b3\u30fc\u30c9\u306f\u30a8\u30c3\u30af\u30b9\u30b5\u30fc\u30d0\u30fc\u3067\u306ehtaccess\u3092\u8aad\u307f\u8fbc\u3080\u30b3\u30fc\u30c9\u306b\u306a\u308b\u306e\u3067\u4ed6\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306b\u5408\u308f\u305b\u3066\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4e2d\u306b\u306f\u8a18\u8ff0\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u30b5\u30fc\u30d0\u30fc\u3082\u3042\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u5185\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nsuPHP_ConfigPath \/home\/hoge\/old.com\/xserver_php\/\r\nAddHandler fcgid-script .php .phps\r\nFCGIWrapper &quot;\/home\/hoge\/old.com\/xserver_php\/php-cgi&quot; .php\r\nFCGIWrapper &quot;\/home\/hoge\/old.com\/xserver_php\/php-cgi&quot; .phps\r\n<\/pre>\n<p>\u4e00\u756a\u5927\u4e8b\u306a\u306e\u306f6,7\u884c\u90e8\u5206\u3067\u4ee5\u4e0b\u306e\u90e8\u5206\u304c\u53e4\u3044\u30c9\u30e1\u30a4\u30f3\u304b\u3089\u65b0\u3057\u3044\u30c9\u30e1\u30a4\u30f3\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u8a18\u8ff0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nRewriteCond %{HTTP_HOST} ^(old\\.com)(:80)? [NC]\r\nRewriteRule ^(.*) http:\/\/new.com\/$1 [R=301,L]\r\n<\/pre>\n<p>6\u884c\u76ee\u306e\u8a18\u8ff0\u306e<strong>(old\\.com)<\/strong>\u3053\u306e\u90e8\u5206\u304c\u30c9\u30e1\u30a4\u30f3\u306e\u540d\u524d\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n.com\u306e\u524d\u306b\u300c\\\u300d\u3092\u5165\u308c\u3066\u8a18\u8ff0\u3092\u3057\u307e\u3059\u3002\u300cold\u300d\u306f\u4efb\u610f\u306e\u540d\u524d\u306b\u5165\u308c\u307e\u3059\u3002<\/p>\n<p>7\u884c\u76ee\u306e\u4ee5\u4e0b\u306e\u8a18\u8ff0\u306f\u300chttp:\/\/\u300d\u304b\u3089\u8a18\u8ff0\u3092\u3057\u3066\u300c.com\/\u300d\u306e\u5f8c\u306b\u300c$1\u300d\u3068\u8a18\u8ff0\u3057\u3066\u3042\u3052\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nRewriteRule ^(.*) http:\/\/new.com\/$1 [R=301,L]\r\n<\/pre>\n<p>\u6700\u5f8c\u306e\u8a18\u8ff0\u306f\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3067\u306e\u30b5\u30a4\u30c8\u904b\u55b6\u3092\u3057\u3066\u308b\u6642\u306e\u8a18\u8ff0\u306b\u306a\u308a\u307e\u3059\u3002\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3067\u904b\u55b6\u3092\u3057\u3066\u308b\u6642\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u3042\u3052\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n# BEGIN WordPress\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n&lt;\/IfModule&gt;\r\n# END WordPress\r\n<\/pre>\n<h3><span id=\"www\">www\u6709\u7121\u306e\u7d71\u4e00<\/span><\/h3>\n<p>url\u306e\u30a2\u30af\u30bb\u30b9\u3082\u4e0b\u304c\u308a\u307e\u3059\u306e\u3067SEO\u5bfe\u7b56\u306e\u305f\u3081\u306b\u3082www.\u306b\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u5834\u5408\u306f\u7d71\u4e00\u3092\u56f3\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u8a18\u8ff0\u306f\u300cnew.com\u300d\u306b\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u5834\u5408\u306fwww.\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u8a18\u8ff0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nRewriteCond %{HTTP_HOST} ^(new\\.com)(:80)? [NC]\r\nRewriteRule ^(.*) http:\/\/www.new.com\/$1 [R=301,L]\r\n<\/pre>\n<p><a href=\"https:\/\/www.peko.co.jp\/seo\/link\/301-302-redirect\" taeget=\"_blank\">\u53c2\u8003\u30b5\u30a4\u30c8<\/a><\/p>\n<h3><span id=\"301-2\">\u30b5\u30af\u30e9\u30b5\u30fc\u30d0\u30fc\u3067\u306e301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u6cd5<\/span><\/h3>\n<p>\u300cwww.test.com\u300d\u3092\u300ctest.com\u300d\u306b\u7d71\u4e00\u3057\u305f\u3044\u6642\u306b301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3067\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nRewriteEngine on\r\nRewriteCond %{HTTP_HOST} ^(www\\.test\\.com)(:80)?\r\nRewriteRule (.*) http:\/\/test.com\/$1 [R=301,L]\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u5834\u5408\u306f<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n(www\\.test\\.com)\r\n<\/pre>\n<p>\u300cwww.\u300d\u3092\u629c\u3044\u305f\u300chttp:\/\/test.com\u300d\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u308b\u3068\u3044\u3044\u8a18\u8ff0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttp:\/\/test.com\/$1\r\n<\/pre>\n<p>\u30b5\u30af\u30e9\u30b5\u30fc\u30d0\u30fc\u3067\u306e301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/p>\n<p><a href=\"http:\/\/www.oikawa-sekkei.com\/web\/design\/others\/redirect.html\" taeget=\"_blank\">\u30b5\u30af\u30e9\u30b5\u30fc\u30d0\u30fc\u3067\u306e301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u53c2\u8003\u30b5\u30a4\u30c8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 \u30ea\u30c0\u30a4\u30ec\u30af&hellip;<\/p>\n","protected":false},"author":2,"featured_media":260,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,7],"tags":[],"_links":{"self":[{"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/posts\/180"}],"collection":[{"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180"}],"version-history":[{"count":19,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":264,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions\/264"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=\/wp\/v2\/media\/260"}],"wp:attachment":[{"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memo.baseline-lib.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}