{"id":4713,"date":"2019-12-06T12:00:45","date_gmt":"2019-12-06T03:00:45","guid":{"rendered":"http:\/\/ad114l2yb6.smartrelease.jp\/aiold\/?p=4713"},"modified":"2019-12-06T20:25:32","modified_gmt":"2019-12-06T11:25:32","slug":"seonp","status":"publish","type":"post","link":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/seonp\/","title":{"rendered":"PHP\u3067SEO\u306enext\u3001prev\u3092\u5b9f\u88c5\u3059\u308b"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002<br \/>\nAI\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f0a\u85e4\u3067\u3059\u3002<\/p>\n<p>\u4e16\u306f\u307e\u3055\u306b\u5927\u5e2b\u8d70\u6642\u4ee3\u3002<br \/>\n\u9591\u8a71\u4f11\u984c\u3002<br \/>\n\u3044\u3084\u3001\u307e\u3060\u672c\u984c\u306e\u8a71\u3092\u4e00\u5207\u3057\u3066\u3044\u306a\u3044\u3067\u3059\u304c\u2026\u2026\u3002<\/p>\n<p>0\u304b\u3089PHP\u7b49\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u3044\u308b\u3068\u56f0\u308b\u3053\u3068\u3002<br \/>\n\u666e\u6bb5WordPress\u7b49\u3092\u99c6\u4f7f\u3057\u3066\u3044\u308b\u5834\u5408\u610f\u5916\u306a\u843d\u3068\u3057\u7a74\u306b\u3072\u3063\u304b\u304b\u3063\u305f\u308a\u3059\u308b\u3082\u306e\u3067\u3059\u3002<br \/>\n\u4f8b\u3048\u3070SEO\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u306e\u5927SEO\u6642\u4ee3\u3001\u51fa\u6765\u308b\u9650\u308a\u591a\u304f\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092head\u306e\u4e2d\u306b\u9589\u3058\u8fbc\u3081\u3066\u3084\u308a\u305f\u3044\u3082\u306e\u3067\u3059\u3002<br \/>\nSEO\u306a\u3093\u3066\u3068\u308a\u3042\u3048\u305a\u5358\u7d14\u306b\u5024\u3092\u5f15\u3044\u3066\u3053\u308c\u3070\u3044\u3044\u306e\u3067\u697d\u52dd\u3060\u3044\uff01\u3068\u3044\u3046\u6c17\u6301\u3061\u304c\u3042\u306e\u9803\u306e\u79c1\u306b\u3082\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3053\u3093\u306a\u3068\u3053\u308d\u306b\u9b54\u7269\u304c\u6f5c\u3093\u3067\u3044\u308b\u3068\u306f\u3064\u3086\u77e5\u3089\u305a\u3002<\/p>\n<p>\u305d\u306e\u9b54\u7269\u306e\u540d\u306f\u2026\u2026<br \/>\n\u300cprev\u300d\u3068\u300cnext\u300d\u3067\u3059\u3002<\/p>\n<h4 class=\"blog-h4\">prev\u3068next\u3068\u306f<\/h4>\n<p>\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u304c\u5b58\u5728\u3059\u308b\u30da\u30fc\u30b8\u306b\u304a\u3044\u3066\u3001\u524d\u306e\u30da\u30fc\u30b8\u3068\u6b21\u306e\u30da\u30fc\u30b8\u304c\u3069\u306e\u30b5\u30a4\u30c8\u3067\u3042\u308b\u304b\u3092\u793a\u3059\u30bf\u30b0\u3067\u3059\u3002<br \/>\n\u5f53\u7136\u30011\u30da\u30fc\u30b8\u76ee\u306b\u306fprev\u304c\u5b58\u5728\u305b\u305a\u3001\u6700\u7d42\u30da\u30fc\u30b8\u3067\u306fnext\u304c\u5b58\u5728\u3057\u306a\u3044\u308f\u3051\u3067\u2026\u2026\u3002<br \/>\n\u6fc0\u3057\u3044\u9762\u5012\u304f\u3055\u305d\u3046\u3055\u304c\u6b63\u4f53\u3092\u73fe\u3057\u3066\u304d\u307e\u3057\u305f\u306d\u3002<br \/>\n\u3068\u306f\u3044\u3048\u3001\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308c\u308b\u3050\u3089\u3044\u305d\u308c\u306a\u308a\u306b\u4f5c\u308c\u308b\u8cb4\u65b9\u3060\u3063\u305f\u3089\u3001\u96e3\u306a\u304f\u4f5c\u308c\u308b\u306f\u305a\u3002<\/p>\n<h4 class=\"blog-h4\">prev\u3068next\u306e\u90e8\u5206\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046<\/h4>\n<p>\u3055\u3066\u3001\u9762\u5012\u305d\u3046\u3067\u3059\u304c\u4f5c\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002<br \/>\nprev\u3068next\u3092\u4f5c\u308b\u306b\u3042\u305f\u3063\u3066\u5fc5\u8981\u306a\u60c5\u5831\u306f\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u30fb\u73fe\u5728\u4f55\u30da\u30fc\u30b8\u76ee\u3092\u95b2\u89a7\u3057\u3066\u3044\u308b\u304b\u3002<br \/>\n\u30fb\u30de\u30c3\u30af\u30b9\u4f55\u30da\u30fc\u30b8\u3042\u308b\u304b\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>$pagesum \u2192 \u30da\u30fc\u30b8\u5408\u8a08\u6570<br \/>\n$pageno \u2192 \u73fe\u884c\u30da\u30fc\u30b8<\/p>\n<pre>\r\n<code>\r\nif($pagesum >= 2){\r\n    \/\/2\u30da\u30fc\u30b8\u4ee5\u4e0a\u5b58\u5728\u3059\u308b\u306a\u3089\r\n    $prevno = $pageno -1;\r\n    $nextno = $pageno +1;\r\n    if($pageno == $pagesum){\r\n        \/\/\u73fe\u5728\u304c\u6700\u5f8c\u306e\u30da\u30fc\u30b8\u306a\u306e\u3067\u3001next\u3092\u8868\u8a18\u305b\u305a\u3001prev\u3060\u3051\u8868\u8a18\r\n        $p_canonical .= \"<link rel='prev' href='{$_(SITE_URL)}{$_(AREA_INFO[$area_no]['url'])}\/{$mode}\/?p={$prevno}{$purl}'\/>\";\r\n    }else if($pageno == 1){\r\n        \/\/2P\u4ee5\u4e0a\u5b58\u5728\u3057\u3066\u304b\u3064\u73fe\u5728\u306f1P\u76ee\u306a\u306e\u3067\u3001prev\u3092\u8868\u8a18\u305b\u305a\u3001next\u3060\u3051\u8868\u8a18\r\n        $p_canonical .= \"<link rel='next' href='{$_(SITE_URL)}{$_(AREA_INFO[$area_no]['url'])}\/{$mode}\/?p={$nextno}{$purl}'\/>\";\r\n    }else{\r\n        \/\/2P\u4ee5\u4e0a\u5b58\u5728\u3057\u3066\u304b\u3064\u6700\u5f8c\u3067\u306a\u30442P\u76ee\u4ee5\u964d\u306a\u306e\u3067\u3001prev\u3068next\u3068\u3082\u306b\u8868\u8a18\r\n        $p_canonical .= \"<link rel='prev' href='{$_(SITE_URL)}{$_(AREA_INFO[$area_no]['url'])}\/{$mode}\/?p={$prevno}{$purl}'\/>\";\r\n        $p_canonical .= \"<link rel='next' href='{$_(SITE_URL)}{$_(AREA_INFO[$area_no]['url'])}\/{$mode}\/?p={$nextno}{$purl}'\/>\";\r\n    }\r\n}else{\r\n    \/\/1\u30da\u30fc\u30b8\u3057\u304b\u5b58\u5728\u3057\u306a\u3044\u306e\u3067canonical\u3092\u8868\u8a18\u3057\u306a\u3044\r\n    $p_canonical .= \"\";\r\n}\r\n<\/code>\r\n<\/pre>\n<p>\u610f\u5916\u3068\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u306d\uff01<br \/>\n\u30da\u30fc\u30b8\u30e3\u30fc\u3088\u308a\u306f\u2026\u2026\u697d\u2026\u2026\uff01<\/p>\n<h4 class=\"blog-h4\">\u3061\u306a\u307f\u306b<\/h4>\n<p>\u8a18\u4e8b\u3092\u66f8\u304f\u306b\u3042\u305f\u3063\u3066\u88cf\u53d6\u308a\u8abf\u67fb\u3057\u3066\u3044\u3066\u77e5\u3063\u305f\u306e\u3067\u3059\u304cGoogle\u306f\u3001prev\u30fbnext\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u30923\u6708\u306b\u5ec3\u6b62\u3057\u3066\u3044\u305f\u3089\u3057\u3044\u3067\u3059\u2026\u2026\u3002<\/p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\">Spring cleaning! <\/p>\n<p>As we evaluated our indexing signals, we decided to retire rel=prev\/next. <br \/>Studies show that users love single-page content, aim for that when possible, but multi-part is also fine for Google Search. Know and do what&#39;s best for *your* users! <a href=\"https:\/\/twitter.com\/hashtag\/springiscoming?src=hash&amp;ref_src=twsrc%5Etfw\">#springiscoming<\/a> <a href=\"https:\/\/t.co\/hCODPoKgKp\">pic.twitter.com\/hCODPoKgKp<\/a><\/p>\n<p>&mdash; Google Webmasters (@googlewmc) <a href=\"https:\/\/twitter.com\/googlewmc\/status\/1108726443251519489?ref_src=twsrc%5Etfw\">March 21, 2019<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>\u306a\u3093\u3058\u3083\u305d\u308a\u3083\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\uff01<br \/>\n\u305b\u3001\u305b\u3063\u304b\u304f\u66f8\u3044\u305f\u306e\u306b\uff01\uff01<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001Bing\u7b49\u3067\u306f\u4f9d\u7136\u4f7f\u308f\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u524a\u9664\u307e\u3067\u306f\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u3067\u3057\u3087\u3046\u3002<br \/>\n\u305d\u3057\u3066\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u6d3b\u7528\u3057\u3066\u307f\u3066\u3082\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\">We&#39;re using rel prev\/next (like most markup) as hints for page discovery and site structure understanding. At this point we&#39;re not merging pages together in the index based on these and we&#39;re not using prev\/next in the ranking model. <a href=\"https:\/\/t.co\/ZwbSZkn3Jf\">https:\/\/t.co\/ZwbSZkn3Jf<\/a><\/p>\n<p>&mdash; Fr\u00e9d\u00e9ric Dubut (@CoperniX) <a href=\"https:\/\/twitter.com\/CoperniX\/status\/1108799603963514880?ref_src=twsrc%5Etfw\">March 21, 2019<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>\u305d\u3057\u3066\u30bf\u30a4\u30df\u30f3\u30b0\u826f\u3044\u3053\u3068\u306b\u300112\u6708\u306b\u3053\u308c\u306b\u4ee3\u308f\u308b\u30b7\u30b9\u30c6\u30e0\u304c\u4e88\u544a\u3055\u308c\u305f\u3068\u306e\u3053\u3068\u3002<br \/>\n\u79fb\u308a\u5909\u308f\u308a\u306e\u6fc0\u3057\u3044SEO\u696d\u754c\u3001\u4eca\u5f8c\u306e\u52d5\u5411\u306b\u6ce8\u76ee\u3067\u3059\u3002<\/p>\n<p>\u3010\u53c2\u8003\u3011rel=prev\/next\u30b5\u30dd\u30fc\u30c8\u306e\u7d42\u4e86\u5f8c\u306e\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092Google\u304c\u6e96\u5099\u4e2d<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"gdfeyufikI\"><p><a href=\"https:\/\/www.suzukikenichi.com\/blog\/google-is-preparing-best-practices-for-pagination-without-rel-prev-next\/\">rel=prev\/next\u30b5\u30dd\u30fc\u30c8\u306e\u7d42\u4e86\u5f8c\u306e\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092Google\u304c\u6e96\u5099\u4e2d<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"https:\/\/www.suzukikenichi.com\/blog\/google-is-preparing-best-practices-for-pagination-without-rel-prev-next\/embed\/#?secret=gdfeyufikI\" data-secret=\"gdfeyufikI\" width=\"600\" height=\"338\" title=\"&#8220;rel=prev\/next\u30b5\u30dd\u30fc\u30c8\u306e\u7d42\u4e86\u5f8c\u306e\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092Google\u304c\u6e96\u5099\u4e2d&#8221; &#8212; \u6d77\u5916SEO\u60c5\u5831\u30d6\u30ed\u30b0\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002 AI\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f0a\u85e4\u3067\u3059\u3002 \u4e16\u306f\u307e\u3055\u306b\u5927\u5e2b\u8d70\u6642\u4ee3\u3002 \u9591\u8a71\u4f11\u984c\u3002 \u3044\u3084\u3001\u307e\u3060\u672c\u984c\u306e\u8a71\u3092\u4e00\u5207\u3057\u3066\u3044\u306a\u3044\u3067\u3059\u304c\u2026\u2026\u3002 0\u304b\u3089PHP\u7b49\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u3044\u308b\u3068\u56f0\u308b\u3053\u3068\u3002 \u666e\u6bb5WordPress\u7b49\u3092\u99c6\u4f7f\u3057\u3066\u3044&#8230;<\/p>\n","protected":false},"author":3,"featured_media":4714,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,15],"tags":[],"_links":{"self":[{"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/posts\/4713"}],"collection":[{"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/comments?post=4713"}],"version-history":[{"count":2,"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/posts\/4713\/revisions"}],"predecessor-version":[{"id":4717,"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/posts\/4713\/revisions\/4717"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/media\/4714"}],"wp:attachment":[{"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/media?parent=4713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/categories?post=4713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ad114l2yb6.smartrelease.jp\/aiold\/wp-json\/wp\/v2\/tags?post=4713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}