{"id":41,"date":"2019-11-05T15:22:27","date_gmt":"2019-11-05T06:22:27","guid":{"rendered":"https:\/\/ta539.com\/bokumemo\/?p=41"},"modified":"2019-11-18T13:17:01","modified_gmt":"2019-11-18T04:17:01","slug":"htaccess","status":"publish","type":"post","link":"https:\/\/ta539.com\/bokumemo\/2019\/11\/05\/htaccess\/","title":{"rendered":".htaccess"},"content":{"rendered":"<p># \u30a2\u30af\u30bb\u30b9\u3055\u308c\u305fURL\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u30d5\u30a1\u30a4\u30eb\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteRule ^(.*)$ index.php?url=$1 [QSA,L]<\/p>\n<p>^ = \u884c\u982d\u3092\u8868\u3059<br \/>\n$ = \u884c\u672b<br \/>\n(.*) = \u306a\u3093\u3067\u3082\u3044\u30441\u6587\u5b57\u3092\u30010\u56de\u4ee5\u4e0a\u7e70\u308a\u8fd4\u3059\u3002\u3064\u307e\u308a\u3001\u3042\u3089\u3086\u308b\u6587\u5b57\u5217\u3092\u8868\u73fe\u3067\u304d\u308b\u3002<br \/>\n\u6b63\u898f\u8868\u73fe\u306e\u30d1\u30bf\u30fc\u30f3\u5185\u3092\u62ec\u5f27()\u3092\u4f7f\u3063\u3066\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u5909\u6570\u300c$1\u300d\u300c$2\u300d&#8230;\u306e\u90e8\u5206\u306b\u3001\u30de\u30c3\u30c1\u3057\u305f\u6587\u5b57\u5217\u304c\u4ee3\u5165\u3055\u308c\u308b\u3002<br \/>\n$1 = \u3053\u306e\u5834\u5408\u3001\u3053\u3053\u306b(.*)\u304c\u4ee3\u5165\u3055\u308c\u308b\u3002\u3064\u307e\u308a\u3001\u6587\u5b57\u306a\u3057\u3092\u542b\u3080\u3001\u3042\u3089\u3086\u308b\u6587\u5b57\u5217\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u300choge.html\u300d\u300csample\u300d\u300c\u6587\u5b57\u306a\u3057\u300d\u306a\u3069\u3001\u4f55\u3067\u3082\u3002<br \/>\n[R=301,L] = R\u306f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3002301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff08\u6052\u4e45\u7684\u306a\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff09\u3092\u3055\u305b\u308b\u3002L\u306f\u3001\u6761\u4ef6\u306b\u30de\u30c3\u30c1\u3057\u305f\u969b\u306b\u306f\u3001\u305d\u3053\u3067\u51e6\u7406\u3092\u7d42\u4e86\u3055\u305b\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b\u3002<\/p>\n<p>\u25a0\u8d85\u30b7\u30f3\u30d7\u30eb\u306b<\/p>\n<p>&lt;IfModule mod_rewrite.c&gt;<br \/>\n\u00a0 \u00a0 RewriteEngine on<br \/>\n\u00a0 \u00a0 RewriteRule ^(.*)$ https:\/\/ta539.com\/bokumemo\/ [R=301,L]<br \/>\n&lt;\/IfModule&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p># \u30a2\u30af\u30bb\u30b9\u3055\u308c\u305fURL\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u30d5\u30a1\u30a4\u30eb\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] ^ = \u884c\u982d\u3092\u8868\u3059 $ = \u884c\u672b (.*) = \u306a\u3093\u3067\u3082\u3044\u30441\u6587\u5b57\u3092\u30010\u56de\u4ee5\u4e0a\u7e70\u308a\u8fd4\u3059\u3002\u3064\u307e\u308a\u3001\u3042\u3089\u3086\u308b\u6587\u5b57\u5217\u3092\u8868\u73fe\u3067\u304d\u308b\u3002 \u6b63\u898f\u8868\u73fe\u306e\u30d1\u30bf\u30fc\u30f3\u5185\u3092\u62ec\u5f27()\u3092\u4f7f\u3063\u3066\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u5909\u6570\u300c$1\u300d\u300c$2\u300d&#8230;\u306e\u90e8\u5206\u306b\u3001\u30de\u30c3\u30c1\u3057\u305f\u6587\u5b57\u5217\u304c\u4ee3\u5165\u3055\u308c\u308b\u3002 $1 = \u3053\u306e\u5834\u5408\u3001\u3053\u3053\u306b(.*)\u304c\u4ee3\u5165\u3055\u308c\u308b\u3002\u3064\u307e\u308a\u3001\u6587\u5b57\u306a\u3057\u3092\u542b\u3080\u3001\u3042\u3089\u3086\u308b\u6587\u5b57\u5217\u3002 \u4f8b\u3048\u3070\u3001\u300choge.html\u300d\u300csample\u300d\u300c\u6587\u5b57\u306a\u3057\u300d\u306a\u3069\u3001\u4f55\u3067\u3082\u3002 [R=301,L] = R\u306f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3002301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff08\u6052\u4e45\u7684\u306a\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff09\u3092\u3055\u305b\u308b\u3002L\u306f\u3001\u6761\u4ef6\u306b\u30de\u30c3\u30c1\u3057\u305f\u969b\u306b\u306f\u3001\u305d\u3053\u3067\u51e6\u7406\u3092\u7d42\u4e86\u3055\u305b\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b\u3002 \u25a0\u8d85\u30b7\u30f3\u30d7\u30eb\u306b &lt;IfModule mod_rewrite.c&gt; \u00a0 \u00a0 RewriteEngine on \u00a0 \u00a0 RewriteRule ^(.*)$ https:\/\/ta539.com\/bokumemo\/ [R=301,L] &lt;\/IfModule&gt;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[8],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-apache","tag-htaccess"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ta539.com\/bokumemo\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ta539.com\/bokumemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ta539.com\/bokumemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ta539.com\/bokumemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ta539.com\/bokumemo\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":0,"href":"https:\/\/ta539.com\/bokumemo\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"wp:attachment":[{"href":"https:\/\/ta539.com\/bokumemo\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ta539.com\/bokumemo\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ta539.com\/bokumemo\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}