.htaccess - Allow Let's Encrypt to Validate and Renew

When receiving the following Let's Encrypt error message:


domain.com: The SSL certificate expires on Sep 01, 20xx at
3:09:54 PM UTC. At the time of this notice, the certificate expired “-2
days, 2 hours, 9 minutes, and 51 seconds” ago.

The SSL certificate for “domain.com” has not been renewed. *You
must take action to secure this site.*

To upgrade to an EV or OV certificate, navigate to the “SSL/TLS Wizard
<https://webserver.ultrawebhosting.com:2083/?goto_app=SSL_TLS_Wizard>
interface.

 

Add a RewriteCond to your .htaccess to allow the script to work:

 RewriteEngine On
 RewriteCond %{REQUEST_URI} !\.well-known/acme-challenge
 RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
 RewriteRule ^(.*)$ https://%1/$1 [R=301,L]


If you are already using a redirect, add the following above it:

 RewriteRule ^.well-known/acme-challenge [L]
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

vBulletin fsockopen() [function.fsockopen]: unable to connect

When setting up mail in vBulletin be sure you are using localhost for the mail server along with...

.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

To solve “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable” follow...

How do I customize error messages for my site?

Within control panel select Custom Error Pages. Select the error code link and place whatever...

When I upload an .htaccess file it disappears.

On unix/linux systems, files that start with a . are considered hidden so many ftp programs do...