The "Too Many Redirects" error typically occurs when there is a misconfiguration in your domain's HTTPS settings, resulting in an infinite loop of redirects. This issue is common when using SSL in combination with CloudFlare or server-level redirects. Follow this guide to resolve the problem and restore your website’s functionality.
What Causes "Too Many Redirects"?
This error is often caused by conflicting HTTPS or redirect settings. Common causes include:
- Incorrect SSL settings in CloudFlare (e.g., Flexible vs. Full SSL).
- Multiple HTTPS redirects configured at different levels (e.g., server, CMS, or CloudFlare).
- Improper .htaccess or Nginx configuration.
Steps to Resolve the Issue
1. Verify CloudFlare SSL Settings
If you’re using CloudFlare, ensure the correct SSL mode is configured:
- Log in to your CloudFlare Dashboard.
- Go to the SSL/TLS settings tab.
- Select the appropriate SSL mode:
- Flexible: Use this if your server doesn’t have an SSL certificate (not recommended for full security).
- Full: Use this if your server has a self-signed SSL certificate.
- Full (Strict): Use this if your server has a valid, trusted SSL certificate. This is the most secure option.
2. Check for HTTPS Redirect Loops
Ensure there aren’t duplicate or conflicting redirects for HTTPS in your server or CMS configuration:
- .htaccess (Apache): Look for multiple HTTPS redirection rules in your
.htaccessfile. Remove any duplicate or conflicting rules.
- .htaccess (Apache): Look for multiple HTTPS redirection rules in your
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
3. Disable Conflicting HTTPS Settings in CMS
Many content management systems, such as WordPress, have built-in HTTPS settings that may conflict with server-level or CloudFlare redirects.
- Log in to your CMS admin dashboard.
- Disable any HTTPS settings or plugins that enforce redirects (e.g., WordPress plugins like Really Simple SSL).
- Ensure the Site URL and Home URL settings in WordPress are both set to
https://yourdomain.com.
4. Clear Cache
Old cache files may continue to redirect visitors incorrectly even after fixing the configuration. Clear cache at all levels:
- CloudFlare: Go to the Cache tab in CloudFlare and click Purge Everything.
- Browser: Clear your browser cache or use incognito mode to test the site.
- CMS/Server: Clear any caching plugins or server-level cache.
5. Test Your Configuration
Once you’ve made the changes, test your website by accessing it in a browser. Ensure the padlock icon appears in the address bar, indicating a secure connection.
Common Scenarios
If Using CloudFlare with Flexible SSL
- Ensure there are no HTTPS redirects on the server-side (e.g., .htaccess or Nginx).
- Let CloudFlare handle HTTPS connections, and keep the origin server configured for HTTP only.
If Using Full or Full (Strict) SSL
- Ensure your server has a valid SSL certificate installed.
- Enable HTTPS redirects at the server level (e.g., .htaccess or Nginx).
- Set CloudFlare’s SSL mode to Full or Full (Strict).
Need Assistance?
If the issue persists after following this guide, contact our support team through the CustomerPanel. Provide details about your configuration, and we’ll help you resolve the "Too Many Redirects" issue for your SSL-enabled domain.