Some of the sites on my server use RewriteRules to provide clean URLs, but this appears to be hindering certbot from creating or renewing certificates. I use the following rewrite rules in an .htaccess file to make the URL changes:
RewriteEngine On
RewriteRule /*\.(css|js|gif|png|jpe?g)$ - [NC,L]
RewriteRule "^(.*)$" "index.php?_url=$1" [QSA,L]
I don’t really understand these types of scripts very well, so, not sure what I need to change so the above rules are ignored for the .well-known folder that certbot creates. I tried add this line, which I found here, but it didn’t seem to work:
RewriteRule ^\.well-known/ - [L]
If anyone knows how I can fix this, I’d really appreciate your advice, thanks!
My web server is: Apache 2.4.6
The operating system my web server runs on is: CentOS Linux 7.8.2003
I can login to a root shell on my machine: Yes
I’m using a control panel to manage my site: No
The version of my client is: certbot 1.3.0