{"id":91,"date":"2021-01-08T21:16:30","date_gmt":"2021-01-08T21:16:30","guid":{"rendered":"http:\/\/merserver.com\/?p=91"},"modified":"2021-01-08T21:16:31","modified_gmt":"2021-01-08T21:16:31","slug":"freepbx-letsencrypt-https-redirect-rule","status":"publish","type":"post","link":"http:\/\/merserver.com\/index.php\/2021\/01\/08\/freepbx-letsencrypt-https-redirect-rule\/","title":{"rendered":"FreePBX LetsEncrypt HTTPS Redirect Rule"},"content":{"rendered":"\n<p>If the LetsEncrypt certificate fails to renew in the PBX and gives a weird error message try this.<\/p>\n\n\n\n<p>SSH into the PBX and edit the .htaccess file located at<\/p>\n\n\n\n<p>\/var\/www\/html<\/p>\n\n\n\n<p>In the .htaccess file set it toHTML<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RewriteEngine On\nRewriteOptions inherit\nRewriteCond %{HTTPS} off\nRewriteCond %{SERVER_PORT} 80\nRewriteCond %{REQUEST_URI} !^\/.well-known\nRewriteCond %{REQUEST_URI} !^\/.freepbx-known\nRewriteRule ^(.*)$ https:\/\/\/%{{HTTP_HOST}}%{{REQUEST_URI}} [L,R=301]<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If the LetsEncrypt certificate fails to renew in the PBX and gives a weird error message try this. SSH into the PBX and edit the .htaccess file located at \/var\/www\/html In the .htaccess file set it toHTML<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":1,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":92,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/91\/revisions\/92"}],"wp:attachment":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}