Jan 22, 2018
4
0
1
France
cPanel Access Level
Website Owner
Hello I have a website hosted under cpanel.
when I try to enter the site in the address bar I come across a page saying:
This page does not work
********.net has redirected you too many times.
Try to delete cookies ..
ERR_TOO_MANY_REDIRECTS

Help me please
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

Could you let us know the contents of the .htaccess file within the account's public_html directory? Ensure to replace references to real domain names with examples.

Thank you.
 
Jan 22, 2018
4
0
1
France
cPanel Access Level
Website Owner
Hello here is the content of .htaccess:

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

DirectoryIndex index.php

order allow,deny

#here I have a list of banned ips to avoid that it is long I will not copy ip addresses

allow from all

</Limit>






Options -Indexes
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Hello,

You could try temporarily disabling these rewrite rules to see if the issue persists. You may also want to consult with the support team or forums of the script you have installed to see if there are any special configuration settings that utilizes redirects. Additionally, it's likely a good idea to contact your web hosting provider so they can take a closer look at the system.

Thank you.
 

Infopro

Well-Known Member
May 20, 2003
17,113
507
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
The easiest way to test if the htaccess rules are problematic is to simply rename the .htaccess to .htaccess.txt

Renaming the file basically disables it from being read by the system that's looking for .htaccess

Once you rename it, clear your browser cache and cookies for the domain and then visit it again.
 

Anoop P Alias

Well-Known Member
Mar 31, 2015
103
15
18
Kochi,Kerala,India
cPanel Access Level
Root Administrator
Check whether you use a proxy server like varnish/nginx and see if you have redirect set in there which clash with the Wordpress siteURL or htaccess redirect. Disabling all type of redirect in the proxy/webserver and replying just on the application level (site_url) redirect would work fine
 

Ugur

Registered
Nov 30, 2018
1
0
0
State College, PA
cPanel Access Level
Root Administrator
I had the same trouble, then I removed this part and fixed it.

# BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.3]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
# END rlrssslReallySimpleSSL