WP site in infinite redirect loop
UPDATE: In Cloudflare – Despite being in DEV mode, I turned OFF redirect to HTTPS: and this got past the infinite loop. However, if you use the 301 Redirect checker, you can see it is going from https://www.pokerdiy.com to http://www.pokerdiy.com to https://pokerdiy.com which is very odd – how to prevent the 301 to http?
I think this is a new issue – I have not made any obvious changes lately:
The canonical URL I want is https://pokerdiy.com
- If I go to http://pokerdiy.com it redirects to https://pokerdiy.com correctly
- If I go to https://pokerdiy.com it works correctly
- If I go to http://www.pokerdiy.com it gets into an infinite loop
- If I go to https://www.pokerdiy.com it gets into an infinite loop
According to http://www.redirect-checker.org/index.php and enter https://www.pokerdiy.com it seems to alternate between http and https until it eventually timesout.
Possible suspects:
- WP Redirection module (currently disabled)
- Cloudflare (Switched to Dev Mode)
- WP Rocket (currently disabled)
- RankMath (currently disabled)
- Kinsta Host – turned off Redirect setting to HTTPs
Any suggestions appreciated please.
>>> https://www.pokerdiy.com
> --------------------------------------------
> 301 Moved Permanently
> --------------------------------------------
Status: 301 Moved Permanently
Code: 301
Date: Thu, 26 Mar 2020 00:19:51 GMT
Content-Type: text/html
Connection: close
Set-Cookie: __cfduid=d86e44ea081ac34eddfeca3495d0879e21585181991; expires=Sat, 25-Apr-20 00:19:51 GMT; path=/; domain=.pokerdiy.com; HttpOnly; SameSite=Lax; Secure
Location: http://www.pokerdiy.com/
CF-Ray: 579cb3d68917e5f8-LHR
Strict-Transport-Security: max-age=2592000; includeSubDomains; preload
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
RJCF: MISS
x-cfw-cache: MISS
X-Content-Type-Options: nosniff
Server: cloudflare
alt-svc: h3-27=":443"; ma=86400, h3-25=":443"; ma=86400, h3-24=":443"; ma=86400, h3-23=":443"; ma=86400
>>> http://www.pokerdiy.com/
> --------------------------------------------
> 301 Moved Permanently
> --------------------------------------------
Status: 301 Moved Permanently
Code: 301
Date: Thu, 26 Mar 2020 00:19:51 GMT
Connection: close
Cache-Control: max-age=3600
Expires: Thu, 26 Mar 2020 01:19:51 GMT
Location: https://www.pokerdiy.com/
X-Content-Type-Options: nosniff
Server: cloudflare
CF-RAY: 579cb3d7b863e630-LHR
alt-svc: h3-27=":443"; ma=86400, h3-25=":443"; ma=86400, h3-24=":443"; ma=86400, h3-23=":443"; ma=86400
Leave an answer