Cache strange bug - Website inaccessible or bad display

What is the name of the domain?

What is the error number?

404

What is the error message?

Error 404

What is the issue you’re encountering

Errors 404 on .js or .css or the entire website

What steps have you taken to resolve the issue?

Hello,

We migrated our site to Cloudflare two years ago, and we’ve never had this kind of problem. Our site has always worked well, and a very strange bug has been occurring for a few days.

Indeed, the site displays 404 errors on the .css or .js files, rendering the site unusable, and sometimes also on the site itself, which is in 404. See the attached screenshot.

I don’t understand what’s causing this problem, but when I activate development mode, everything returns to normal.
I also created a cache bypass rule, but it doesn’t work properly. Sometimes the pages display, sometimes they don’t… Sometimes they display on Chrome, sometimes they display on Firefox, sometimes neither, sometimes on my mobile, yes, but not on my computer. I don’t understand anything!

Thank you in advance for your help; I’ve been tearing my hair out for several days!

What are the steps to reproduce the issue?

Go to : https://www.ecandidats.net
Or : https://www.ecandidats.net/formulaire
Or : https://www.ecandidats.net/website

Screenshot of the error

https://www.ecandidats.net/formulaire/ and https://www.ecandidats.net/website/ work fine from my end of the pond. See screenshots below.

https://www.ecandidats.net technically works, but displays the same Parallels/Plesk welcome page as you posted. Is this a different website? Or is it supposed to redirect to /website/?

I’ve just disabled the devlopement mode and the rule to bypass the cache (see screenshot), so now we are on the basic configuration, could you empty your brower cache and test again please ?

The domain name https://www.ecandidats.net should redirect to https://www.ecandidats.net/formulaire to answer to your question. Thanks

The redirection is obviously not happening on the server.

If you expect Cloudflare to handle this, do you you have Cloudflare a redirection rule for this? If so, can you share a screenshot of the rule?

We have an index.html on the root that do the redirection, with this code :

<html>
<head>
<meta http-equiv="refresh" content="0; url=http://www.ecandidats.net/formulaire">
</head>
<body>
</body>
</html>

Again, could you test these links, now you will have the errors :
https://www.ecandidats.net/politique-confidentialite.html

https://www.ecandidats.net/website

Both give 404 now.

This URL loaded the page shown below on first hit, but now gives 404 as well.

To help with troubleshooting, I’ll recommend you PAUSE Cloudflare so requests go directly to your origin server. Pause Cloudflare · Cloudflare Fundamentals docs

Once you confirm the site(s) work consistently without Cloudflare, only then should you enable Cloudflare and address any issues that may pop up.

Already tested and work fine, the problem comes from cloudflare at 100%, how can we resolve this strange issue? I didn’t do any changes in the configuration, this bug came suddenly!

Sorry, I put the website on pause and the pages are again in 404… I don’t understand why!

We can’t let the website inactive all this ime, so I removed the pause and put the development mode. Waiting for feedback, thank you again!

The server seems to load files from httpsdocs (that’s why the pages are in 404, and the root index.html is the plesk’s default page), whereas all my files stayed in httpdocs, why the server is looking for the files in httpsdocs?

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