{"id":151,"date":"2010-12-31T00:32:29","date_gmt":"2010-12-31T00:32:29","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=151"},"modified":"2012-09-08T16:34:47","modified_gmt":"2012-09-08T16:34:47","slug":"forward-http-to-https","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=151","title":{"rendered":"Forward HTTP to HTTPS"},"content":{"rendered":"<p>Having invested in this secure certificate (not a lot of money, but some, and also some time to get everything configured right), I figure we ought to make sure people are using them.  Especially on our Webmail login page where they&#8217;re transmitting their passwords.<br \/>\nSo anyway, I just need to add a few lines in the httpd-vhosts.conf file within the &#8220;Directory&#8221; Section as follows:<br \/>\n<code><br \/>\n   RewriteEngine On<br \/>\n   RewriteCond %{HTTPS} off<br \/>\n   RewriteRule (.*) https:\/\/mail.omniweb.com%{REQUEST_URI}<br \/>\n<\/code><br \/>\nRestart Apache and there it is &#8211; any requests on <a href=\"http:\/\/mail.omniweb.com\">http:\/\/mail.omniweb.com<\/a> will automatically go right over to <a href=\"https:\/\/mail.omniweb.com\">https:\/\/mail.omniweb.com<\/a> and hence be encrypted in transit.<br \/>\nGood stuff.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having invested in this secure certificate (not a lot of money, but some, and also some time to get everything configured right), I figure we ought to make sure people are using them. Especially on our Webmail login page where &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=151\">Continue reading <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":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/151"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=151"}],"version-history":[{"count":3,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":698,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions\/698"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}