- Check SSL/TLS Settings in Cloudflare:
- Go to your Cloudflare dashboard.
- Navigate to the SSL/TLS section.
- Ensure the SSL mode is set to one of the following:
- Flexible: If your server does not have an SSL certificate installed.
- Full or Full (Strict): If your server has an SSL certificate installed.
- Ensure Server Redirects Are Correct:
- If your server is forcing HTTPS using a redirect (e.g., in your
.htaccess
,Nginx
, or web server settings), make sure it aligns with the Cloudflare SSL mode. - If you are using Full or Full (Strict) in Cloudflare, make sure your server is also set to serve content over HTTPS.
- Check for Mixed Content Redirects:
- If your site is redirecting between HTTP and HTTPS, it can cause a redirect loop.
- You can use Cloudflare’s “Automatic HTTPS Rewrites” feature to fix this:
- In your Cloudflare dashboard, go to SSL/TLS > Edge Certificates, and enable Automatic HTTPS Rewrites.
- Clear Cache:
- Clear both your browser cache and Cloudflare cache. In Cloudflare, go to Caching > Configuration and click on Purge Everything.
Once you’ve adjusted these settings, try accessing your site again.