Strange Redirect Issue

Here’s my issue.

My site is experiencing redirect issues.

For example:

This URL Deadpool Movie Review | Find Out Why People Are Love This Movie should resolve to that page.

However, that URL redirects to the website’s Homepage.

If I turn on Developer mode and bypass Cloudflare - the issue goes away, and the URL loads as expected.

This is happening on several pages, can anyone point me in the right direction to fix this?

It looks like a redirect caused by a captcha was cached by Cloudflare.

Do you have a “cache everything” page rule? Cache everything on top of APO may have unintended consequences. Please see: Page Rule integration with APO · Cloudflare Automatic Platform Optimization docs.

In any case, purge your Cloudflare cache and see if it works.

Thanks for the reply.
I’ve double-checked and don’t have a ‘cache everything’ page rule enabled.

Purging the cache does cure the problem, but then it starts happening again.

I have the same issue across a network of websites so it is not an isolated incident. For a multi-billion dollar company Cloudflare has many issues with very little in the way of support.

If I find a solution I will post it for you.

If you are hosted at siteground the issue is probably as below:

There’s a problem that occurs when Cloudflare’s Automatic Platform Optimization is used along with with siteground Captcha protection mechanism.

When requests from an IP are detected as suspicious by the [Anti-Bot AI a Captcha challenge is visualised. The standard workflow is to solve the challenge and open the requested URL. The Cloudflare system ignores the cache-control: no-cache HTTP header and caches the Captcha page. Then the cached Captcha page is returned to the visitor with the corresponding IP and there is no option to solve it and proceed to the actual website’s page.

The Cloudflare developers are informed for the issue. It should be resolved on their end by implementing an exclude list where the corresponding path (/.well-known/) for the Captcha page can be added. Additionally, the Cloudflare system should honor the cache-control: no-store, max-age=0 headers that we already send for the Captcha page.

The workaround which we can offer from our end for users that want to use the Cloudflare APO is to temporarily deactivate the Captcha protection mechanism.

1 Like