Err_too_many_redirects

Hello RapidWeavers,

RewriteEngine on

RewriteOptions inherit
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteCond %{REQUEST_URI} !^/.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ “https://www.example.com/$1” [R=301,L]

Unfortunately in the many web browser I get this message:

This page isn’t working

www.healingdietcoach.com redirected you too many times.

ERR_TOO_MANY_REDIRECTS

P.S.: In RW the web address in the general settings and in the publishing setting is set on: https://healingdietcoach.com

Do you have any clue of what it is that is making my website going into a loop?. What can I do to sort this out?

Thanks

hoping the code you posted above was NOT what was placed in your .htaccess file. It has example.com all over it.

Try replacing the above with this:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
1 Like

:smiley: yes, I put my actual domain in the .htaccess file.

I just finished a phone call with GoDaddy support team.

All is up and running now (happy days!)

Basically, what I did wrong is that I used the Redirect page inside ePanel for that, rather than doing it manually in the FileManager Page (.htaccess file).
Also, there where were a few code that shouldn’t have been there such as the “RewriteOptions inherit” one.

I appreciate your support teefers.

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