{"id":6531,"date":"2023-06-14T07:50:00","date_gmt":"2023-06-14T07:50:00","guid":{"rendered":"https:\/\/www.smarthost.au\/blog\/?p=6531"},"modified":"2024-06-18T13:36:31","modified_gmt":"2024-06-18T13:36:31","slug":"installing-lets-encrypt-error-http-01","status":"publish","type":"post","link":"https:\/\/www.smarthost.au\/blog\/installing-lets-encrypt-error-http-01","title":{"rendered":"Installing Let&#8217;s Encrypt error http-01"},"content":{"rendered":"\n<p>When you try to install the Let&#8217;s Encrypt certificate, you may receive the following message:<\/p>\n\n\n\n<p>Error occurred: Status: invalid, Detail:, Type: http-01<\/p>\n\n\n\n<p>It is most often caused by all traffic being redirected from http to https and \/ or redirected to the index.php file in order to use simple, friendly URL links (not containing the characters &#8220;?&#8221;, &#8220;&amp;&#8221;, &#8220;=&#8221; Etc. )<\/p>\n\n\n\n<p>If there are RewriteCond and RewriteRule rules in the .htaccess file, try adding a rule:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>RewriteCond% {REQUEST_URI}! ^ \/ \\. Well-known \/ acme-challenge \/ [0-9a-zA-Z _-] + $<\/p>\n<\/blockquote>\n\n\n\n<p>The rule above is responsible for redirecting to https or to the index.php file. An example configuration of a .htaccess file with additional rules already inserted may look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#example 1 - redirect from http to https\nRewriteCond% {HTTPS}! = On\nRewriteCond% {REQUEST_URI}! ^ \/ \\. Well-known \/ acme-challenge \/ [0-9a-zA-Z _-] + $\nRewriteRule ^. * $ Https: \/\/% {SERVER_NAME}% {REQUEST_URI} [R, L]<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">#example 2 - redirection to \"friendly\" links\nRewriteCond% {REQUEST_URI}! ^ \/ Index \\ .php\nRewriteCond% {REQUEST_FILENAME}! -F\nRewriteCond% {REQUEST_FILENAME}! -D\nRewriteCond% {REQUEST_URI}! ^ \/ \\. Well-known \/ acme-challenge \/ [0-9a-zA-Z _-] + $\nRewriteRule. * Index.php [L]<\/pre>\n\n\n\n<p>You should also remember that the selected domain when installing Let&#8217;s Encrypt correctly points to our servers. When redirecting individual DNS records, remember about the www subdomain. and mail.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you try to install the Let&#8217;s Encrypt certificate, you may receive the following message: Error occurred: Status: invalid, Detail:, Type: http-01 It is most often caused by all traffic being redirected from http to<a class=\"read-more\" href=\"https:\/\/www.smarthost.au\/blog\/installing-lets-encrypt-error-http-01\">Continue reading<\/a><\/p>\n","protected":false},"author":16,"featured_media":6536,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[436,8,42],"tags":[115,633,850,285,1145,38],"class_list":["post-6531","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-https-pl","category-security","category-ssl-certificates","tag-certificate","tag-free-ssl","tag-lets-encrypt","tag-ssl-hr","tag-ssl-certificates","tag-ssl-encryption"],"_links":{"self":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/6531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/comments?post=6531"}],"version-history":[{"count":1,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/6531\/revisions"}],"predecessor-version":[{"id":6534,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/6531\/revisions\/6534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media\/6536"}],"wp:attachment":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media?parent=6531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/categories?post=6531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/tags?post=6531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}