{"id":2183,"date":"2021-03-25T18:18:46","date_gmt":"2021-03-25T09:18:46","guid":{"rendered":"https:\/\/www.kinryo.net\/?p=2183"},"modified":"2022-02-18T12:01:42","modified_gmt":"2022-02-18T03:01:42","slug":"wordpress%e3%81%a7%e4%b8%8d%e8%a6%81%e3%81%aaindex-php%e3%82%92%e5%8f%96%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=2183","title":{"rendered":"wordpress\u3067\u4e0d\u8981\u306aindex.php\u3092\u53d6\u308b"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">\u73fe\u8c61\uff1a\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304b\u3089\u306e\u30ea\u30f3\u30af\u3067\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u98db\u3076\u6642\u3001\u81ea\u52d5\u7684\u306bindex.php\u304c\u4ed8\u304f\u3002<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u591a\u304f\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u305d\u306e\u65b9\u6cd5\u304c\u3042\u308b\u304c\u3001\u81ea\u5206\u3067\u306f\u51fa\u6765\u306a\u304b\u3063\u305f\u3002\u86c7\u8db3\u3060\u304c\u79c1\u306e\u7ba1\u7406\u3057\u3066\u3044\u308bWEB\u30b5\u30fc\u30d0\u30fc\u306f<span style=\"color: #ff00ff;\">\u7ba1\u7406\u8005(root)\u6a29\u9650\u304c\u4f7f\u7528\u3067\u304d\u308b\u3002\u3053\u306e\u3088\u3046\u306a\u6642\u306f .htaccess \u3092\u4f7f\u7528\u3059\u3079\u304d\u3067\u306a\u3044\u3002<\/span>\u7ba1\u7406\u8005\u6a29\u9650\u304c\u306a\u3044\u5834\u5408\u306f\u4ed5\u65b9\u306a\u304f\u4f7f\u7528\u305b\u3056\u308b\u3092\u5f97\u306a\u3044\u304c\u3002https:\/\/httpd.apache.org\/docs\/current\/ja\/howto\/htaccess.html \u306b\u3088\u308b\u3068<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u4e00\u822c\u7684\u306b\u3001\u30b5\u30fc\u30d0\u306e\u4e3b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u5834\u5408\u3092\u9664\u3044\u3066\u3001\u00a0<code>.htaccess<\/code>\u00a0\u30d5\u30a1\u30a4\u30eb\u306e\u4f7f\u7528\u306f\u6975\u529b\u907f\u3051\u3066\u304f\u3060\u3055\u3044\u3002 \u4e16\u306e\u4e2d\u306b\u306f\u3001\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u8a8d\u8a3c\u306f\u5e38\u306b\u00a0<code>.htaccess<\/code>\u00a0\u30d5\u30a1\u30a4\u30eb\u3067 \u884c\u306a\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3001\u3068\u3044\u3046\u8aa4\u89e3\u304c\u5e83\u307e\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u307e\u3063\u305f\u304f\u305d\u3093\u306a\u3053\u3068\u306f \u3042\u308a\u307e\u305b\u3093\u3002\u30e6\u30fc\u30b6\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u306f\u30b5\u30fc\u30d0\u4e3b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u3001 \u5b9f\u969b\u3001\u305d\u306e\u65b9\u304c\u3088\u308a\u826f\u3044\u8a2d\u5b9a\u65b9\u6cd5\u3067\u3059\u3002<code>.htaccess<\/code> \u30d5\u30a1\u30a4\u30eb\u306f\u30b3\u30f3\u30c6\u30f3\u30c4\u63d0\u4f9b\u8005\u304c\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6bce\u306e \u8a2d\u5b9a\u3092\u884c\u306a\u3044\u305f\u3044\u3051\u308c\u3069\u3001\u30b5\u30fc\u30d0\u30b7\u30b9\u30c6\u30e0\u306e root \u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u306a\u3044 \u3068\u3044\u3046\u5834\u5408\u306b\u306e\u307f\u4f7f\u3046\u3079\u304d\u3082\u306e\u3067\u3059\u3002\uff08\u53c8\u3001\u305d\u306e\u7406\u7531\u3082\u3053\u3053\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\uff09<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u3068\u3044\u3046\u8a33\u3067\u3001conf.d \u306b\u3042\u308b virtualhost-le-ssl.conf \u3092\u5909\u66f4\uff08lets encrypt\u306e\u8a2d\u5b9a\u6642\u306b\u4f5c\u3089\u308c\u305f\uff09<br \/><span style=\"color: #0000ff;\">&lt;Directory \/webdata\/public\/inpac&gt;<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 AllowOverride None<\/span><br \/>\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #008000;\">&lt;IfModule mod_rewrite.c&gt;<\/span><br \/><span style=\"color: #008000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RewriteEngine On<\/span><br \/><span style=\"color: #008000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RewriteBase \/<\/span><br \/><span style=\"color: #008000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RewriteRule ^index\\.php$ &#8211; [L]<\/span><br \/><span style=\"color: #008000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RewriteCond %{REQUEST_FILENAME} !-f<\/span><br \/><span style=\"color: #008000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RewriteCond %{REQUEST_FILENAME} !-d<\/span><br \/><span style=\"color: #008000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RewriteRule . \/index.php [L]<\/span><br \/><span style=\"color: #008000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/IfModule&gt;<\/span><br \/><span style=\"color: #0000ff;\">&lt;\/Directory&gt;<br \/>\u9752\u5b57<span style=\"color: #333333;\">\u306f\u5143\u3005\u306e\u8a2d\u5b9a\u3001<\/span><span style=\"color: #008000;\">\u7dd1\u5b57<\/span><span style=\"color: #333333;\">\u3092\u8ffd\u8a18\uff08AllowOverride None \u3067 .htaccess \u4f7f\u3048\u306a\u304f\u3057\u3066\u3044\u308b\u3002\u53c8 RewriteBase \u304c\u3042\u308b\u6642\u306f &lt;derectory &#8230;.&gt; \u306e\u4e2d\u306b\u5165\u308c\u306a\u3044\u3068 RewriteBase: only valid in per-directory config files \u3068\u6012\u3089\u308c\u308b\uff09<\/span><br \/><\/span><\/p>\r\n<p>\u3067\u3082\u3063\u3066\u3001apache \u3092\u518d\u8d77\u52d5\u3057\u3066\u30c1\u30a7\u30c3\u30af\u3002<br \/>\uff01\uff01\uff01\uff01\u30a2\u30ec\u30fc \u307e\u3060 index.php \u304c\u5165\u3063\u3066\u3044\u308b\u3002\u306a\u3093\u3067\u30fc\u3002\u3053\u308c\u3067\u6563\u3005\u60a9\u3093\u3060\u304c\u3001\u554f\u984c\u306f\u7c21\u5358\u306a\u4e8b\u3060\u3063\u305f\u3002\u30d1\u30fc\u30ea\u30f3\u30af\u306e\u8a2d\u5b9a\u3067\uff08\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c8 \u2192 \u8a2d\u5b9a \u2192 \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a\uff09\u30ab\u30b9\u30bf\u30e0\u69cb\u9020\u3092\u9078\u3093\u3067\u3044\u308b\u304c\u3001\u305d\u306e\u4e2d\u306e\u8a2d\u5b9a\u3067 <span style=\"color: #ff6600;\">\/index.php\/%year%\/%monthnum%\/%day%\/%postname%\/<\/span> \u3068\u6700\u521d\u306b index.php \u304c\u5165\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u3053\u308c\u3092\u53d6\u308a<span style=\"color: #008000;\">\/%year%\/%monthnum%\/%day%\/%postname%\/<\/span> \u3068\u3057\u3066\u3001\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u305f\u3089\u3001<span style=\"color: #ff6600;\">index.php <\/span>\u304c\u3084\u3063\u3068\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>\u73fe\u8c61\uff1a\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304b\u3089\u306e\u30ea\u30f3\u30af\u3067\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u98db\u3076\u6642\u3001\u81ea\u52d5\u7684\u306bindex.php\u304c\u4ed8\u304f\u3002 \u591a\u304f\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u305d\u306e\u65b9\u6cd5\u304c\u3042\u308b\u304c\u3001\u81ea\u5206\u3067\u306f\u51fa\u6765\u306a\u304b\u3063\u305f\u3002\u86c7\u8db3\u3060\u304c\u79c1\u306e\u7ba1\u7406\u3057\u3066\u3044\u308bWEB\u30b5\u30fc\u30d0\u30fc\u306f\u7ba1\u7406\u8005(root)\u6a29\u9650\u304c\u4f7f\u7528\u3067 &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=2183\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[10],"tags":[],"class_list":["post-2183","post","type-post","status-publish","format-standard","hentry","category-linux"],"acf":[],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2183"}],"version-history":[{"count":6,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2183\/revisions"}],"predecessor-version":[{"id":2193,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2183\/revisions\/2193"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}