Experiencing unwanted redirects when Cloudflare dns is on

What is the name of the domain?

grimaldo.com

What is the issue you’re encountering

Experiencing unwanted redirects to https://warranty.grimaldo.com when Cloudflare proxy is enabled

What steps have you taken to resolve the issue?

1.	Page Rules Configuration:
•	I created a Page Rule in Cloudflare to force all traffic to the correct URL (https://grimaldo.com) in an attempt to override the unwanted redirect to https://warranty.grimaldo.com. Unfortunately, this did not resolve the issue.
2.	Cache Purge:
•	I purged the entire cache from Cloudflare to ensure there were no old cached redirects causing the problem. Despite this, the issue persists.
3.	Plugin and Server Configuration Check:
•	I thoroughly checked the WordPress database for any references to warranty.grimaldo.com and found none.
•	I reviewed the .htaccess file and the server configuration (including potential rules in .user.ini and other configuration files) for any directives that might be causing the redirect. No such rules were found.
•	I temporarily disabled all WordPress plugins, particularly those related to caching, security, and redirection, to see if the issue was plugin-related. The problem continued even with all plugins disabled.
4.	SSL/TLS Settings:
•	I reviewed and adjusted the SSL/TLS settings on Cloudflare, ensuring that the SSL mode was correctly set (tried “Full” and “Full (strict)”), and checked that there were no conflicting settings that might cause a redirect.
5.	Browser and Server Logs Analysis:
•	I used browser developer tools to trace the network requests and identified that the 302 redirect happens immediately after the initial request, but without any clues from the server logs that might indicate the origin of the redirect.
6.	Testing Without Cloudflare:
•	When Cloudflare was temporarily disabled, the issue did not occur, suggesting that the problem is directly related to Cloudflare’s handling of requests.

Given these steps, it appears that the issue might be related to how Cloudflare is interacting with the server or handling certain requests, but I’m unable to pinpoint the exact cause without further guidance.

What feature, service or problem is this related to?

DNS records

Make sure you are using the Full (Strict) SSL mode in Cloudflare.

1 Like

I do use it

Can you check Page Rules, Redirect Rules and Bulk Redirects to make sure none of them are causing the redirect?

If you don’t find it there, can you disable the proxy for a moment?

You found it! It looks like there was an auto generated bulk redirect from cloudflare that was doing that!

Thank you very much for your help :smile:

1 Like

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