{"id":339,"date":"2010-03-19T12:01:43","date_gmt":"2010-03-19T19:01:43","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=339"},"modified":"2010-03-19T12:01:43","modified_gmt":"2010-03-19T19:01:43","slug":"apache-redirect-from-http-to-https","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=339","title":{"rendered":"Apache &#8211; Redirect from http to https."},"content":{"rendered":"<p>I used the following rewrite rules to redirect squirrelmail from http to https automatically.  I added this to the end of the \/etc\/httpd\/conf.d\/squirrelmail.conf in RHEL5.x.<\/p>\n<p>vi \/etc\/httpd\/conf.d\/squirrelmail.conf<br \/>\n&#8230;<br \/>\nRewriteEngine On<br \/>\nRewriteCond %{SERVER_PORT} !^443$<br \/>\nRewriteRule ^\/(.*) https:\/\/%{SERVER_NAME}\/$1 [L,R]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used the following rewrite rules to redirect squirrelmail from http to https automatically. I added this to the end of the \/etc\/httpd\/conf.d\/squirrelmail.conf in RHEL5.x. vi \/etc\/httpd\/conf.d\/squirrelmail.conf &#8230; RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^\/(.*) https:\/\/%{SERVER_NAME}\/$1 [L,<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[66],"class_list":["post-339","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-apache-redirect-rewrite"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=339"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions\/340"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}