Configure mod_rewrite and renew command

Hi, guys I have the same problem describe here (Renewal error 404 failed authorization) and I made a little test: I rename my .htaccess and run the renew command and works well… so my question is: What kind of rule a must have in my .htaccess for the renew command works well?
I got try many different rules :confused:

Here is my htaccess now:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php|public|images|robots.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule “/.|^.” - [F]
RewriteRule “/.|^.(?!well-known/)” - [F]

I think the second of these lines was meant to replace the first, rather than be used along with it. Maybe try commenting out the first one?

Hi, @jmorahan I commented out the first one and works well.
So… I suppose now it works with a cron command to renew the certificates.

I would imagine so (assuming you actually have such a cron command, of course). Let us know if it doesn’t :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.