{"id":77,"date":"2009-06-19T12:26:14","date_gmt":"2009-06-19T03:26:14","guid":{"rendered":"http:\/\/www.zontheworld.com\/blog\/?p=77"},"modified":"2009-08-07T10:54:32","modified_gmt":"2009-08-07T01:54:32","slug":"wordpress-%e3%81%a7%e3%83%a1%e3%83%b3%e3%83%86%e3%83%8a%e3%83%b3%e3%82%b9%e7%94%bb%e9%9d%a2%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b-htaccess-%e3%81%ae%e6%9b%b8%e3%81%8d%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.zontheworld.com\/blog\/archives\/77","title":{"rendered":"WordPress \u3067\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u753b\u9762\u3092\u8868\u793a\u3059\u308b .htaccess \u306e\u66f8\u304d\u65b9"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>\u306f\u3058\u3081\u306b\u4e0b\u8a18\u3092\u8aad\u3093\u3067\u304a\u304f\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u3068\u3082\u3044\u307e\u3059\u3002Apache 2.2\u7cfb\u3092\u4f7f\u3063\u3066\u3044\u308b\u4eba\u306f\u524d\u8a18\u4e8b\u306e\u53c2\u8003\u30b5\u30a4\u30c8\u306e\u65b9\u6cd5\u3092\u4f7f\u3046\u307b\u3046\u304c\u7c21\u5358\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.zontheworld.com\/blog\/archives\/76\" class=\"note\">\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u4e2d\u753b\u9762\u3092\u51fa\u3059\u6b63\u3057\u3044\u4f5c\u6cd5\u3068.htaccess\u306e\u66f8\u304d\u65b9\u306e\u6ce8\u610f\u70b9<\/a><\/p>\n<p>\u307e\u305f\u3001WordPress \u306b\u306f\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u753b\u9762\u3092\u8868\u793a\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3082\u3042\u308b\u306e\u3067\u3001\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u306b\u304a\u3044\u3066\u306f\u305d\u3061\u3089\u3092\u4f7f\u3046\u307b\u3046\u304c\u7c21\u5358\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/wordpress.org\/extend\/plugins\/maintenance-mode\/\" class=\"note\">WordPress \u203a Maintenance Mode \u00ab WordPress Plugins<\/a><\/p>\n<p><!--more--><\/p>\n<h3>\u3053\u306e\u65b9\u6cd5\u3067\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u753b\u9762\u3092\u8868\u793a\u3059\u308b\u5834\u9762<\/h3>\n<p>\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306e\u4f5c\u696d\u306f\u3001\u539f\u5247\u3068\u3057\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u505c\u6b62\u3057\u3066\u884c\u3046\u306e\u3067\u3001\u4e0a\u8a18\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u753b\u9762\u306e\u8868\u793a\u7528\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u4f7f\u3048\u306a\u3044\u3002<br \/>\n\u3057\u304b\u3057\u3001WordPress ver.2.7 \u4ee5\u964d\u306f\u81ea\u52d5\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3082\u7c21\u5358\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u308f\u3056\u308f\u3056\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u753b\u9762\u3092\u8868\u793a\u3059\u308b\u307b\u3069\u306e\u4f5c\u696d\u3092\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>\u305d\u3046\u3044\u3046\u308f\u3051\u3067\u3001\u624b\u4f5c\u696d\u3067 WordPress \u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u5834\u5408\u3050\u3089\u3044\u3057\u304b\u6709\u52b9\u306a\u4f7f\u3044\u9053\u306f\u306a\u3044\u3002<\/p>\n<p>\u73fe\u5728 WordPress ver.2.8 \u306f\u81ea\u52d5\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306b\u4e0d\u5177\u5408\u304c\u3042\u308a\u3001\u624b\u4f5c\u696d\u3067\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3061\u306a\u307f\u306b\u3001\u3053\u306e\u30d6\u30ed\u30b0\u306f\u624b\u4f5c\u696d\u3067\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u306e\u304c\u9762\u5012\u306a\u306e\u3067\u3044\u307e\u3060\u306b ver.2.7.1 \u306e\u307e\u307e\u3002<\/p>\n<h3>\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u753b\u9762\u306e\u8868\u793a\u65b9\u6cd5<\/h3>\n<p>wp-content\/ \u914d\u4e0b\u306b maintenance \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u203bwp-content\/plugin\/ \u914d\u4e0b\u3068\u3069\u3061\u3089\u306b\u3059\u308b\u304b\u8ff7\u3063\u305f\u3051\u3069\u3001\u53b3\u5bc6\u306b\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306f\u306a\u3044\u306e\u3067\u6df7\u4e71\u3057\u306a\u3044\u3088\u3046\u4e0a\u8a18\u306b\u3057\u305f\u3002<\/p>\n<p>maintenance\/ \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u306b index.php \u3068 maintenance.html \u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u3002<br \/>\n\u203bindex.php \u3068 maintenance.html \u306e\u5185\u5bb9\u306f\u3001<a href=\"https:\/\/www.zontheworld.com\/blog\/archives\/76\">\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u4e2d\u753b\u9762\u3092\u51fa\u3059\u6b63\u3057\u3044\u4f5c\u6cd5\u3068.htaccess\u306e\u66f8\u304d\u65b9\u306e\u6ce8\u610f\u70b9<\/a> \u3092\u53c2\u7167\u3002<\/p>\n<p>\u4e0b\u8a18\u306e .htaccess \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30c8\u30c3\u30d7\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u304f\u3002<br \/>\n\u203b\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a\u3092\u30ab\u30b9\u30bf\u30e0\u3057\u305fURL\u69cb\u9020\u306b\u5909\u66f4\u3057\u3066\u3044\u3066\u3001\u30c8\u30c3\u30d7\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u65e2\u306b .htaccess \u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^wp-content\/maintenance\/ - [L]\r\nRewriteCond %{REMOTE_ADDR} !=XXX.XXX.XXX.XXX\r\nRewriteRule ^.*$ wp-content\/maintenance\/index.php\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p>\u203bREMOTE_ADDR \u306e \u300eXXX.XXX.XXX.XXX\u300f \u90e8\u5206\u306f \u7ba1\u7406\u8005\u306e IP \u3092\u5165\u308c\u3066\u304a\u3051\u3070\u3001\u7ba1\u7406\u8005\u306f\u4f5c\u696d\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3002<br \/>\n\u203bWordPress \u306e\u30c8\u30c3\u30d7\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c DocumentRoot \u3067\u306f\u306a\u3044\u3068\u304d\u306f\u3001RewriteRule \u306e\u8a18\u8ff0\u304c\u5909\u308f\u308b\u306e\u3067\u6ce8\u610f\u3002<br \/>\n\u203b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u5b8c\u4e86\u3057\u305f\u5f8c\u306b .htaccess \u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001\u81ea\u52d5\u7684\u306b\u901a\u5e38\u306e .htaccess \u306b\u623b\u3063\u3066\u3044\u305f\u304c\u3001\u3069\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u623b\u3063\u305f\u304b\u306f\u8abf\u67fb\u3057\u3066\u3044\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u306f\u3058\u3081\u306b\u4e0b\u8a18\u3092\u8aad\u3093\u3067\u304a\u304f\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u3068\u3082\u3044\u307e\u3059\u3002Apache 2.2\u7cfb\u3092\u4f7f\u3063\u3066\u3044\u308b\u4eba\u306f\u524d\u8a18\u4e8b\u306e\u53c2\u8003\u30b5\u30a4\u30c8\u306e\u65b9\u6cd5\u3092\u4f7f\u3046\u307b\u3046\u304c\u7c21\u5358\u3067\u3059\u3002 \u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u4e2d\u753b\u9762\u3092\u51fa\u3059\u6b63\u3057\u3044\u4f5c\u6cd5\u3068.htaccess\u306e\u66f8\u304d\u65b9\u306e\u6ce8\u610f\u70b9 \u307e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[16,54,30],"_links":{"self":[{"href":"https:\/\/www.zontheworld.com\/blog\/wp-json\/wp\/v2\/posts\/77"}],"collection":[{"href":"https:\/\/www.zontheworld.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zontheworld.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zontheworld.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zontheworld.com\/blog\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":0,"href":"https:\/\/www.zontheworld.com\/blog\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zontheworld.com\/blog\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zontheworld.com\/blog\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zontheworld.com\/blog\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}