What is the name of the domain?
astondigital.com.au
What is the error message?
Your web page has redirected too many times.
What is the issue you’re encountering
When turning DNS proxy on for our root domain, it causes an infinite redirect loop for the root URL ONLY. all over sub pages work fine. For example astondigital.com.au/ fails but astondigital.com.au/index.php does not as do all other sub pages.
What steps have you taken to resolve the issue?
I have personally worked on this for 3 days straight, and I have read over 100+ articles on the internet about it. It is NOT one of the typical errors. Please dont’ tell me to turn the SSL settings to STRICT, I have already done that to no affect.
-=What we already know=-
- This is NOT the typical “Activate Full (STRICT) SSL” settings in cloudflare problem. It has already been activated and remains activated and makes no difference
- As best as I can tell there are no plugins that are causing this
- There are no redirects in the main homepage causing this. We know this because a) index.php works and b) the redirect is at the server/header level, meaning the page isn’t even rendered before the redirection occurs
- We cannot tell what’s precipitating the redirection
- The entire database has been scoured for instances of “www.astondigital.com.au” to try and find if there is a Host or Site URL setting incorrect somewhere. There isn’t a single instance of that URL anywhere in the Wordpress Database
- We have reviewed the Cloudpanel Server settings repeatedly and cannot find any difference between these settings and settings on other working platforms that we host. They look exactly the same
- The root URL https://astondigital.com.au loads completely find when the DNS proxy is disabled
- We deleted and recreated the Cloudflare property in the hope that it would remove any bad settings. After this was done there was no difference
- We have reviewed extensively all the Cloudflare settings and cannot find any culprit or erroneous settings.
- We have deleted and recreated as many SSL certificates as we can find to do, and it makes no difference.
- We have deleted and recreated from scratch the Cloudpanel/NGINX VHOST file, to absolutely no affect
- The .htaccess file is the default one
- The NGINX.conf file is the default one and the same as other websites that we have that work fine.
-=The Architecture=-
- Cloudflare (Free)
- CloudPanel
- PHP 8
- AWS Lightsail
- Nginx
- Wordpress
- Avada Theme
- Yoast SEO
- Other plugins but they are disabled and seemingly have no affect whether enabled or disabled.
What feature, service or problem is this related to?
DNS records
What are the steps to reproduce the issue?
I can turn this on to show any such skilled person the issue in about 3 minutes.
1 - Turn DNS Proxy on for the root domain
2 - wait 2 minutes
3 - Test the web page on pingdom tools to avoid your local machines proxy
4 - See the issue
5 - Revert the setting back because you have real customers needing to use the website.