{"id":869,"date":"2018-10-29T06:31:07","date_gmt":"2018-10-28T21:31:07","guid":{"rendered":"https:\/\/www.dogrow.net\/hp\/?p=869"},"modified":"2021-04-03T20:56:11","modified_gmt":"2021-04-03T11:56:11","slug":"blog74","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/hp\/blog74\/","title":{"rendered":"(74) \u81ea\u4f5cHP\u3067\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u4f7f\u3046\u3002"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>WORDPRESS\u3067\u5f53\u305f\u308a\u524d\u306e\u3088\u3046\u306b\u4f7f\u3063\u3066\u3044\u308b\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3002<\/p>\n<p>\u82f1\u8a9e\u3067\u66f8\u304f\u3068 <span class=\"my_fc_deeppink\">permalink<\/span><\/p>\n<p>\u3059\u306a\u308f\u3061\u3001<span class=\"my_fc_deeppink\">\u6052\u4e45\u7684\u306a\u30ea\u30f3\u30af<\/span><\/p>\n<p>\u3059\u306a\u308f\u3061\u3001\u305a\u3063\u3068\u5909\u308f\u3089\u306a\u3044\u30ea\u30f3\u30af\u540d\u3068\u3044\u3046\u3053\u3068\u3060\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a URL\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6700\u65b0\u60c5\u5831\u95b2\u89a7\u30da\u30fc\u30b8\u304c\u3042\u3063\u305f\u3068\u3059\u308b\u3002<\/p>\n<pre>\r\nhttp:\/\/www.example.com\/result.php?year=2018 <span class=\"my_fc_crimson\">\u2190(1)<\/span>\r\n<\/pre>\n<p>\u3053\u306e\u8a18\u8ff0\u30eb\u30fc\u30eb\u306b\u5f93\u3048\u3070\u3001\u7fcc2019\u5e74\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3060\u3002<\/p>\n<pre>\r\nhttp:\/\/www.example.com\/result.php?year=2019 <span class=\"my_fc_crimson\">\u2190(2)<\/span>\r\n<\/pre>\n<p>\u540c\u3058\u300c\u6700\u65b0\u60c5\u5831\u304c\u95b2\u89a7\u3067\u304d\u308b\u30b5\u30a4\u30c8\u300d\u3067\u306f\u3042\u308b\u304c\u3001\u6642\u9593\u306e\u5909\u5316\u3068\u3068\u3082\u306b\u30a2\u30af\u30bb\u30b9\u6642\u306e URL\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u305d\u3053\u3067 2018\u3068\u304b 2019\u3068\u304b\u3092\u96a0\u307a\u3044\u3057\u3001<span class=\"my_fc_deeppink\">\u3044\u3064\u3067\u3082\u540c\u3058 URL\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044<\/span>\u3002<br \/>\n\u3067\u3082\u3001<span class=\"my_fc_crimson\">\u65e2\u5b58\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306f\u4e00\u5207\u624b\u3092\u52a0\u3048\u305f\u304f\u306a\u3044\u3002<\/span><\/p>\n<p>\u3064\u307e\u308a&#8230;<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4e00\u5207\u3044\u3058\u3089\u305a\u306b\u3001\u3044\u3064\u3067\u3082<\/p>\n<pre>\r\nhttp:\/\/www.example.com\/newinfo <span class=\"my_fc_crimson\">\u2190(3)<\/span>\r\n<\/pre>\n<p>\u3067\u6700\u65b0\u60c5\u5831\u95b2\u89a7\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3002<\/p>\n<h1 class=\"my_h\">2. \u3084\u3063\u3066\u307f\u308b<\/h1>\n<h2 class=\"my_h\">(1) Apache\u306e mod_rewite \u3092\u4f7f\u3063\u3066\u5b9f\u73fe\u3059\u308b\u3002<\/h2>\n<h3 class=\"my_h\">1) \u57fa\u672c<\/h3>\n<p><span class=\"my_fc_deeppink\">.htaccess<\/span> \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u304a\u304f\u3002<\/p>\n<pre>\r\n&lt;IfModule mod_rewrite.c&gt;\r\n    RewriteEngine on\r\n    RewriteRule ^newinfo$      result.php?year=2019 [L]\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p>\u3059\u308b\u3068 <span class=\"my_fc_crimson\">(3)<\/span> \u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u6765\u305f\u4eba\u306b\u3070\u308c\u305a\u306b <span class=\"my_fc_crimson\">(2)<\/span> \u3092\u958b\u3051\u308b\u3002<\/p>\n<p>\u3059\u306a\u308f\u3061&#8230;<br \/>\n\u95b2\u89a7\u8005\u306eWEB\u30d6\u30e9\u30a6\u30b6\u306e\u30a2\u30c9\u30ec\u30b9\u30d0\u30fc\u306b\u306f <span class=\"my_fc_crimson\">(3)<\/span> \u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u307e\u307e\u306a\u306e\u3067\u3001\u4e0d\u81ea\u7136\u306a\u3053\u3068\u306a\u304f\u3070\u308c\u305a\u306b <span class=\"my_fc_crimson\">(2)<\/span> \u3078\u98db\u3070\u305b\u308b\u306e\u3060\u3002<\/p>\n<h3 class=\"my_h\">2) \u5fdc\u7528\u305d\u306e1<\/h3>\n<p>\u3082\u3057\u3001<\/p>\n<pre>\r\nhttp:\/\/www.example.com\/newinfo<span class=\"my_fc_deeppink\">?type=1<\/span>\r\n<\/pre>\n<p>\u306e\u3088\u3046\u306b\u5f15\u6570\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308b\u6642\u306f\u3001L\uff08Last \u3064\u307e\u308a\u300c\u30eb\u30fc\u30eb\u306e\u5b9a\u7fa9\u306f\u3053\u3053\u307e\u3067\u3067\u7d42\u308f\u308a\u300d\uff09\u306e\u524d\u306b <span class=\"my_fc_deeppink\">QSA<\/span>\u3092\u4ed8\u3051\u308b\u3002<\/p>\n<pre>\r\n&lt;IfModule mod_rewrite.c&gt;\r\n    RewriteEngine on\r\n    RewriteRule ^newinfo$      result.php?year=2019 [<span class=\"my_fc_deeppink\">QSA<\/span>,L]\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5c55\u958b\u3055\u308c\u3066\u6240\u671b\u306e\u52d5\u4f5c\u3068\u306a\u308b\u3002<\/p>\n<pre>\r\nresult.php<span class=\"my_fc_deeppink\">?type=1<\/span>&year=2019\r\n<\/pre>\n<p>\u3053\u308c\u3092\u3057\u306a\u3044\u3068\u5f15\u6570\u304c\u6d88\u3048\u3066\u3057\u307e\u3046\u3002<\/p>\n<h1 class=\"my_h\">3. \u6240\u611f<\/h1>\n<p>\u3061\u3087\u3063\u3068\u96d1\u3060\u304c\u5099\u5fd8\u9332\u306a\u306e\u3067\u4e00\u5148\u305a\u3053\u308c\u3067\u3088\u3057\u3002<br \/>\n<span class=\"my_fc_deeppink\">mod_rewrite<\/span> \u306f\u4f7f\u3044\u3053\u306a\u305b\u305f\u3089\u4fbf\u5229\u305d\u3046\u306a\u306e\u3067\u3001\u305d\u306e\u3046\u3061\u306b\u3061\u3083\u3093\u3068\u52c9\u5f37\u3057\u3088\u3046\u3002<\/p>\n<h1 class=\"my_h\">\u53c2\u8003\u60c5\u5831<\/h1>\n<p>\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 m(_ _)m<br \/>\n<a href=\"https:\/\/www.dokuwiki.org\/ja:rewrite\" target=\"_blank\" rel=\"noopener\">https:\/\/www.dokuwiki.org\/ja:rewrite<\/a><br \/>\n<a href=\"https:\/\/oxynotes.com\/?p=7392\" target=\"_blank\" rel=\"noopener\">https:\/\/oxynotes.com\/?p=7392<\/a><br \/>\n<a href=\"https:\/\/qiita.com\/tkykmw\/items\/c1e2df5e96d9dad3a07a\" target=\"_blank\" rel=\"noopener\">https:\/\/qiita.com\/tkykmw\/items\/c1e2df5e96d9dad3a07a<\/a><br \/>\n<a href=\"https:\/\/ferret-plus.com\/2186\" target=\"_blank\" rel=\"noopener\">https:\/\/ferret-plus.com\/2186<\/a><br \/>\n<a href=\"http:\/\/wiki.bit-hive.com\/tomizoo\/pg\/mod_rewrite%20-%20QSA%E3%83%95%E3%83%A9%E3%82%B0\" target=\"_blank\" rel=\"noopener\">http:\/\/wiki.bit-hive.com\/tomizoo\/pg\/mod_rewrite%20-%20QSA%E3%83%95%E3%83%A9%E3%82%B0<\/a><br \/>\n<a href=\"https:\/\/html-coding.co.jp\/knowhow\/tips\/wp_modrewrite\/\" target=\"_blank\" rel=\"noopener\">https:\/\/html-coding.co.jp\/knowhow\/tips\/wp_modrewrite\/<\/a><\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 WORDPRESS\u3067\u5f53\u305f\u308a\u524d\u306e\u3088\u3046\u306b\u4f7f\u3063\u3066\u3044\u308b\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3002 \u82f1\u8a9e\u3067\u66f8\u304f\u3068 permalink \u3059\u306a\u308f\u3061\u3001\u6052\u4e45\u7684\u306a\u30ea\u30f3\u30af \u3059\u306a\u308f\u3061\u3001\u305a\u3063\u3068\u5909\u308f\u3089\u306a\u3044\u30ea\u30f3\u30af\u540d\u3068\u3044\u3046\u3053\u3068\u3060\u3002 \u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a URL\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/hp\/blog74\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,25],"tags":[],"class_list":["post-869","post","type-post","status-publish","format-standard","hentry","category-apache","category-mod_rewrite"],"views":1996,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/comments?post=869"}],"version-history":[{"count":33,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/869\/revisions"}],"predecessor-version":[{"id":1690,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/posts\/869\/revisions\/1690"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/media?parent=869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/categories?post=869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/hp\/wp-json\/wp\/v2\/tags?post=869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}