Monthly Archives: May 2018

Sysadmin: Letsencrypt renewal htaccess redirect bypass

With increasing role of HTTPS websites (Google pushing everybody to run only HTTPS websites considering regular HTTP as insecure) the service provided by Let’s encrypt becomes critically important. But there is a catch – once you get the certificate and redirect your site to HTTPS using .htaccess you will get a problem renewing certificate because 301 redirect breaks the challenge verification and the command

gives an error about authorization problem.

Here is the correction to the .htaccess file that allows to avoid this problem.

  1. Here is HTTPS redirection part of your .htaccess file before modification

  2. This is the same part after adjustment

Share Button