{"id":271,"date":"2016-06-09T15:40:41","date_gmt":"2016-06-09T06:40:41","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=271"},"modified":"2018-10-31T11:35:56","modified_gmt":"2018-10-31T02:35:56","slug":"blog36","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog36\/","title":{"rendered":"(36) \u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092https\u306b\u5236\u9650"},"content":{"rendered":"<p><span class=\"my_fc_blue\">http:\/\/www.xxxxxxxxxxxx.xxx\/<\/span><br \/>\n\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u7981\u6b62\u3057\u3001<br \/>\n<span class=\"my_fc_blue\">>https:\/\/www.xxxxxxxxxxxx.xxx\/<\/span><br \/>\n\u306b\u30a2\u30af\u30bb\u30b9\u3055\u305b\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u5834\u5408\u306e\u304a\u8a71\u3067\u3059\u3002<\/p>\n<h3 class=\"my_h my_mgT_2rem\">\u65b9\u6cd5\uff11\uff1ahttp\u3067\u306e\u30a2\u30af\u30bb\u30b9\u6642\u306f\u8868\u793a\u3092\u62d2\u5426\u3059\u308b\u5834\u5408<\/h3>\n<p>.htaccess\u306b\u4ee5\u4e0b\u306e\uff11\u6587\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre>\r\nSSLRequireSSL\r\n<\/pre>\n<h3 class=\"my_h my_mgT_2rem\">\u65b9\u6cd5\uff12\uff1ahttp\u3067\u306e\u30a2\u30af\u30bb\u30b9\u6642\u306f\u5f37\u5236\u7684\u306bhttps\u306b\u5909\u66f4\u3055\u305b\u308b\u5834\u5408<\/h3>\n<p>.htaccess\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre>\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine on\r\n<span class=\"my_fc_green\"># HTTPS\u3067\u306e\u30a2\u30af\u30bb\u30b9\u304cOFF\u306a\u3089\u3070\uff08\uff1dHTTPS\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3067\u306a\u3044\u306a\u3089\u3070\uff09<\/span>\r\nRewriteCond %{HTTPS} off\r\n<span class=\"my_fc_green\"># BASE\u914d\u4e0b\u306e\u5168\u6587\u5b57\u3092\u300chttps:\/\/\u30db\u30b9\u30c8\u540d\/URI\u300d\u306b\u5909\u3048\u3066 [R:\u30ea\u30c0\u30a4\u30ec\u30af\u30c8]\u3057[L:\u7d42\u308f\u308b]<\/span>\r\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [R,L]\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p><span class=\"my_fc_deeppink\">%{xxxxxx}<\/span> \u306f Apache\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5909\u6570\u540d\u3092\u4f7f\u3044\u3001\u74b0\u5883\u5909\u6570\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002<br \/>\n\u30fb<span class=\"my_fc_blue\">HTTPS<\/span> : HTTPS\u30a2\u30af\u30bb\u30b9 or not<\/p>\n<p>\u30fb<span class=\"my_fc_blue\">HTTP_HOST<\/span> : URL\u306b\u542b\u307e\u308c\u308b\u30db\u30b9\u30c8\u540d<br \/>\n\u3000https:\/\/<span class=\"my_fc_deeppink\">www.dogrow.net<\/span>\/linux\/blog36<\/p>\n<p>\u30fb<span class=\"my_fc_blue\">REQUEST_URI<\/span> : \u30d9\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u306e\u76f8\u5bfe\u30d1\u30b9<br \/>\n\u3000https:\/\/www.dogrow.net<span class=\"my_fc_deeppink\">\/linux\/blog36<\/span><\/p>\n<p>\u5909\u66f4\u524d\u306eURL\u3092 $1 \u3068\u3057\u3066\u5f8c\u65b9\u53c2\u7167\u3057\u3066\u3044\u306a\u3044\u306e\u3067 RewriteRule\u306f\u4ee5\u4e0b\u3067\u3082\u3088\u3044\u3002<\/p>\n<pre>\r\nRewriteRule <span class=\"my_fc_deeppink\">^.*$<\/span> https:\/\/%{HTTP_HOST}%{REQUEST_URI} [R,L]\r\n<\/pre>\n<pre>\r\nRewriteRule <span class=\"my_fc_deeppink\">.*<\/span> https:\/\/%{HTTP_HOST}%{REQUEST_URI} [R,L]\r\n<\/pre>\n<pre>\r\nRewriteRule <span class=\"my_fc_deeppink\">.<\/span> https:\/\/%{HTTP_HOST}%{REQUEST_URI} [R,L]\r\n<\/pre>\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:\/\/weblabo.oscasierra.net\/apache-rewritecond-base\/\" target=\"_blank\">https:\/\/weblabo.oscasierra.net\/apache-rewritecond-base\/<\/a><\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.xxxxxxxxxxxx.xxx\/ \u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u7981\u6b62\u3057\u3001 >https:\/\/www.xxxxxxxxxxxx.xxx\/ \u306b\u30a2\u30af\u30bb\u30b9\u3055\u305b\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u5834\u5408\u306e\u304a\u8a71\u3067\u3059\u3002 \u65b9\u6cd5\uff11\uff1ahttp\u3067\u306e\u30a2\u30af\u30bb\u30b9\u6642\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog36\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-271","post","type-post","status-publish","format-standard","hentry","category-apache"],"views":2040,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/comments?post=271"}],"version-history":[{"count":26,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/271\/revisions"}],"predecessor-version":[{"id":1877,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/271\/revisions\/1877"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}