ERR_TOO_MANY_REDIRECTS - ssl certbot / cms wordpress / standart .htaccess

Posted August 12, 2019 390 views
CentOS Apache WordPress Let's Encrypt

Hello anyone can help me solve my issue about ERRTOOMANY_REDIRECTS

OS: centos 7 64bit
Php version: 7.2


My VirtualHost conf

<VirtualHost *:80>
    DocumentRoot /var/www/
    ErrorLog /var/www/
    CustomLog /var/www/ combined
RewriteEngine on
RewriteCond %{SERVER_NAME} [OR]
RewriteCond %{SERVER_NAME}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]


<IfModule mod_ssl.c>
<VirtualHost *:443>
    DocumentRoot /var/www/
    ErrorLog /var/www/
    CustomLog /var/www/ combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/
SSLCertificateChainFile /etc/letsencrypt/live/

my .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

i also use cloudflare but on development mode

thanks ^^

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer


I believe that your Wordpress site and home URLs are currently set to rather than That’s why when you add the https redirect you get a redirect loop.

You can change your Site and Home URLs via your Wordpress admin area -> Go to Settings -> General screen in a single site installation of WordPress, there are two fields named “WordPress Address (URL)” and “Site Address (URL)”.

As always, make sure to create a backup before making any changes.

Hope that this helps.

Submit an Answer