[Solved] How to Fix Apache .htaccess redirect loop ERR_TOO_MANY_REDIRECTS Issue on a WordPress Site

.htaccess file is a configuration file for the Apache web server (which is what most WordPress hosts use). In other words, it contains rules that give your website’s server various instructions. Just about every WordPress site has an . htaccess file, located in the ‘root’ or central directory.

ERR_TOO_MANY_REDIRECTS (also known as a redirect loop) is one we see on a regular basis. Typically this occurs after a recent change on your WordPress site, a misconfiguration of redirects on your server, or wrong settings with third-party services. I met the issue when I renewed my SSL certificate on my site: https://www.transfermyvideofiles.com/. Check out the recommendations below on how to fix this error and get your site back up and running.

Solution one: Copy the following codec to your .htaccess file

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://transfermyvideofiles.com/$1 [L,R=301]

Solution two: Copy the following codec to your .htaccess file

If the first way doesn’t work, try to copy the following script to your .htaccess file

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]


# END WordPress

Actually, I put the lines in solution one and the lines in solution two together in my .htaccess file, which finally solved my issue on my website, and hope this will be of some help for those who are looking for a solution to solve Apache .htaccess redirect loop or ERR_TOO_MANY_REDIRECTS issue on your WordPress site.