What does “Too many redirects” mean and how can I fix it?
The error message “Too many redirects” means that your website is in a redirect loop: the browser is redirected between addresses again and again, without ever reaching a page. After a number of times the browser stops and shows this message.
Possible causes
- Incorrectly configured addresses in your website, for example a WordPress address or site address that still starts with
http://. - Rules in the
.htaccessfile that contradict each other or create an unintended redirect. You can test your rules with the .htaccess tester. - Your control panel sends visitors to
https://, while a rule or setting in your website sends them back tohttp://. Below you can read how to track this down and fix it. - A proxy or CDN in front of your website, such as Cloudflare with the SSL mode Flexible. Cloudflare then fetches your website over
http://; if your server redirects that tohttps://, a loop is created, according to Cloudflare's explanation. Cloudflare then recommends the SSL mode Full or higher. - Duplicate or incorrect redirect rules in the server settings.
- Plugins or themes that conflict with each other, in a CMS such as WordPress.
Solution: finding the rule that sends visitors back to http://
Your control panel can send visitors from http:// to https:// itself. If your website then sends them back to http://, a loop is created. A short test shows whether that is the cause. Then you make your website itself send visitors to https://, and you turn the redirect of the control panel back on.
Enter a domain name, such as yourdomain.nl.
This value doesn’t fit here. An example: whs1.
This is how you turn the redirect of the control panel off and on:
Web Hosting (DirectAdmin)
Also for Reseller Hosting.
- Log in to DirectAdmin via Single Sign-On from Mijn xYnta, or at
https://yourdomain.nl:2222. - Under Account Manager, click Domains.
- In the list, click
yourdomain.nl. You see Modify yourdomain.nl. - Under SSL, untick or tick Force SSL with https redirect.
- Click MODIFY.

WordPress Hosting (Plesk)
- Log in to Plesk at
https://whs1.srvnl.nl:8443. You can find your server name in How can I find the server name of my hosting package? - For
yourdomain.nl, click the Hosting & DNS tab and then Hosting. You see Hosting Settings. - Under SSL/TLS support, untick or tick Redirect visitors from HTTP to HTTPS via a SEO friendly 301 redirect.
- Click Save.
Test: turn the redirect off temporarily
Untick the option and save, as described above. If the error message has gone, something in your website sends visitors back to
http://. If the message stays, the cause is elsewhere: then look at the other causes above and turn the redirect back on.Send your website to https://
Find the rule or setting that sends visitors back to
http://and change it tohttps://, or remove it:- a rule in
.htaccess, for example aRewriteRulewithhttp://%{HTTP_HOST}in it; - the WordPress address and the site address in the general settings of WordPress: make them start with
https://.
A rule in
.htaccessthat does send visitors tohttps://looks like this. Put it at the top of the file. If there is a block# BEGIN WordPress…# END WordPress, put it above that block: WordPress rewrites everything in between.RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]- a rule in
Turn the redirect back on
Tick the option again and save, as described above.
Check your website
Open
http://yourdomain.nl. You now end up athttps://yourdomain.nl, without an error message.
Related articles
Thank you for your feedback.

