{"id":124,"date":"2010-08-09T14:40:21","date_gmt":"2010-08-09T05:40:21","guid":{"rendered":"http:\/\/www.free-style.biz\/lifediary\/?p=124"},"modified":"2010-08-09T14:40:21","modified_gmt":"2010-08-09T05:40:21","slug":"cakephp%e3%82%b5%e3%82%a4%e3%83%88%e3%81%a7ssl%e5%88%b6%e5%be%a1%e3%82%92htaccess%e3%81%a7%e8%a1%8c%e3%81%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.free-style.biz\/lifediary\/?p=124","title":{"rendered":"CakePHP\u30b5\u30a4\u30c8\u3067SSL\u5236\u5fa1\u3092htaccess\u3067\u884c\u3046\u65b9\u6cd5"},"content":{"rendered":"<p>mod_rewrite\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u30b5\u30a4\u30c8\u5168\u4f53\u3092SSL\u5bfe\u5fdc(https)\u3059\u308b\u300c.htaccess\u300d\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u65b9\u306f\u30fb\u30fb\u30fb<br \/>\n<IfModule mod_rewrite.c><br \/>\nRewriteEngine On<br \/>\nRewriteCond %{HTTP_HOST} ^free-style.biz$<br \/>\nRewriteCond %{HTTPS} off<br \/>\nRewriteRule ^(.*) https:\/\/free-style.biz\/$1 [R=301,L]<br \/>\n<\/IfModule><br \/>\n\u6761\u4ef6\u3068\u3057\u30662\u884c\u76ee\u306e\u300cHTTP_HOST\u300d\u306f\u3042\u3063\u3066\u3082\u306a\u304f\u3066\u3082\u3088\u3044\u3067\u3059\u3002<br \/>\n3\u884c\u76ee\u306e\u300c%{HTTPS} off\u300d\u306b\u3088\u308a\u300chttp:\/\/\u3067\u59cb\u307e\u3063\u3066\u3044\u308b\u300d\uff1d\u300chttps:\/\/\u3067\u59cb\u307e\u3063\u3066\u3044\u306a\u3044\u300d\u3068\u3044\u3046\u6761\u4ef6\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n4\u884c\u76ee\u3067\u7d76\u5bfe\u8868\u793a\u3067URL\u3092\u6307\u5b9a\u3057\u3001\u30eb\u30fc\u30c8\u4ee5\u4e0b\u306e\u30d1\u30b9\u3092\u300c$1\u300d\u3068\u3057\u3066\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u3055\u3066\u3001CakePHP\u30b5\u30a4\u30c8\u3067\u300cwww\u300d\u3067\u59cb\u307e\u308bURL\u3092\u300cwww\u306a\u3057\u300d\u306b\u5909\u66f4\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306e\u66f8\u304d\u65b9\u3092\u8aac\u660e\u3057\u307e\u3059\u3002(\/app\/webroot\/.htaccess)<br \/>\n<IfModule mod_rewrite.c><br \/>\nRewriteEngine On<br \/>\nRewriteCond %{HTTP_HOST} ^www.free-style.biz$<br \/>\nRewriteCond %{HTTPS} on<br \/>\nRewriteRule ^(.*) https:\/\/free-style.biz\/$1 [R=301,L]<br \/>\nRewriteCond %{HTTP_HOST} ^www.free-style.biz$<br \/>\nRewriteCond %{HTTPS} off<br \/>\nRewriteRule ^(.*) http:\/\/free-style.biz\/$1 [R=301,L]<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteRule ^(.*)$ index.php?url=$1 [QSA,L]<br \/>\n<\/IfModule><br \/>\n\u5927\u307e\u304b\u306a\u6d41\u308c\u306f<br \/>\n1.www\u4ed8\u304d\u3092www\u306a\u3057\u306b\u3057\u3066\u518d\u30a2\u30af\u30bb\u30b9\u3059\u308b(http:\/\/\u306e\u5834\u5408)<br \/>\n2.www\u4ed8\u304d\u3092www\u306a\u3057\u306b\u3057\u3066\u518d\u30a2\u30af\u30bb\u30b9\u3059\u308b(https:\/\/\u306e\u5834\u5408)<br \/>\n3.\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a9\u30eb\u30c0\u304c\u5b9f\u5728\u3057\u306a\u3044\u5834\u5408\u306findex.php\u3092\u5b9f\u884c\u3059\u308b<br \/>\n\u3068\u306a\u308a\u307e\u3059\u30023\u306f\u901a\u5e38\u306eCakePHP\u306e\u307e\u307e\u3067\u3059\u3002<br \/>\n\u6761\u4ef6(RewriteCond)\u3068\u30eb\u30fc\u30eb(RewriteRule)\u306f\u4f55\u500b\u3082\u91cd\u306d\u3066\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u304c\u3001\u300c[R=301,L]\u300d\u306b\u3088\u308a\u6b63\u5e38\u306b\u518d\u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f\u5834\u5408\u306f\u3053\u3053\u3067\u4e00\u65e6\u7d42\u4e86\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nhttp:\/\/www.free-style.biz\/\u3067\u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f\u5834\u5408\u306f\u30011\u756a\u76ee\u3067\u300chttp:\/\/free-style.biz\/\u300d\u306b\u518d\u30a2\u30af\u30bb\u30b9\u3055\u308c\u3066\u4e00\u5ea6\u7d42\u4e86\u3057\u3001\u300chttp:\/\/free-style.biz\/\u300d\u3067\u30a2\u30af\u30bb\u30b9\u3055\u308c\u30663\u756a\u76ee\u3067index.php\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u306e\u4ed5\u7d44\u307f\u304c\u7406\u89e3\u3067\u304d\u308c\u3070\u3001htaccess\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3088\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mod_rewrite\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u30b5\u30a4\u30c8\u5168\u4f53\u3092SSL\u5bfe\u5fdc(https)\u3059\u308b\u300c.htaccess\u300d\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u65b9\u306f\u30fb\u30fb\u30fb RewriteEngine On RewriteCond %{HTTP_HOST} ^free-s &hellip; <a href=\"https:\/\/www.free-style.biz\/lifediary\/?p=124\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">CakePHP\u30b5\u30a4\u30c8\u3067SSL\u5236\u5fa1\u3092htaccess\u3067\u884c\u3046\u65b9\u6cd5<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-124","post","type-post","status-publish","format-standard","hentry","category-cakephpgo"],"_links":{"self":[{"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124"}],"version-history":[{"count":0,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}