I’m having the following problem:
I’m using the Redirection plugin + W3Total cache plugin + Cloudflare. I recently found out that there’s an issue with the status headers of the 404 urls.
For example, after cleaning of all plugin caches and the Cloudflare cache, and testing an already removed url with a redirect checker, the first check shows always 404 and the second, incl. all next checks – 200 OK is returned. It’s the same with each 404s. I tested numerous times.
A better description of my issue by another person in the past:
“[caching plugin] is disabled. I visit a known bad link on my site (https://example.com/xyzz/) and receive a 404 error page. I can verify in Chrome’s Inspector and/or Firebug that the “404 Not Found” status is being properly served in the HTTP headers. An online redirect checkers shows a proper 404 status.
I turn [caching plugin] on and visit the same URL. On the initial visit I am served a cached page (verified by the debugging comments inserted by the plugin at the bottom of the HTML source) with the proper “404 Not Found” status in the HTTP header.
If I visit the page again (https://example.com/xyzz/), I’m served the same cached page from #2 above displaying the “404 – Page Not Found” error to the user, but with a “200 OK” status in the HTTP header.
If I turn [caching plugin] off and visit the page again, I am again being served an uncached page with the correct “404 Not Found” status in the HTTP header.
Any idea what might be going on here? This is seems to be causing some an issue where Google Bot is attempting to index some non-existent pages because its seeing the “200 OK” HTTP header instead of the proper 404.”
W3Total settings can be seen here: https://imgur.com/MHhW7G8
Cloudflare settings:
Caching Level: No query string
Browser Cache Expiration: Respect existing headers
Wordpress, Redirection plugin, W3Total cache plugin – all updated to the latest version. Newspaper version: 9.5
Hi,
First of all, please notice that the Redirection plugin and W3Total Cache were not tested with the theme and also, we cannot say for sure if it will work or not as expected with the theme, sorry!try to re-save the permalinks and check how it works! Also, you need to check the following topic from here -> https://kinsta.com/blog/error-404-not-found/ where you can see how the 404 error can be resolved.
Hope this helps!
Thank you!
Hi,
Please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can take a closer look at your configuration.
Thank you!