Gateway timeout (error 504) when redirect in php is sent

What is the name of the domain?

private

What is the error number?

504

What is the error message?

gateway time-out

What is the issue you’re encountering

timeout. i wonder if cloudflare is creating a loop with redirects? our htacess has a redirect turning all http to https. i wonder if cloudflare is doing this too and creating a loop. how do i get cloudflare to stop doing that?

What steps have you taken to resolve the issue?

the only way to stop this is bypass cloudflare. the webpages in question have run perfectly without cloudflare. i believe cloudflare is causing a loop,

What are the steps to reproduce the issue?

php script runs that has redirect:
$url = ‘web_page.php’;
header('Location: ’ . $url);

Screenshot of the error

cloudflare_ap_error.png

Check your SSL/TLS setting is set to “Full (strict)” in your dashboard here…
https://dash.cloudflare.com/?to=/:account/:zone/ssl-tls

Otherwise, what is the website?

This topic was automatically closed after 15 days. New replies are no longer allowed.