Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

404 Header for Custom 404 page

$
0
0

Replies: 0

Just got a notice from Google Console that 404’s are returning a “soft 404”.

I have a custom error page and in the settings of your plugin I have it set to do a 301 to existing page and the selected page is “error page”.

When I run this through Chrome Dev Tools, in the network tab, when I initiate an intentional URL error, it does bring me to the custom error page, BUT the header status is “200 ok” – and the header status should be “404 not found”.

I am using the free version of the Astra theme. In it’s 404 template it just simply calls up the default header (ie. get_header(); ?>).

What is the best way to remedy this, please?
– custom coding in your plugin?
– custom coding in theme 404 template?
– custom function?

Whichever way is best to remedy this to set the correct “404 not found” header, I want to be absolutely sure that I am still receiving broken link notices from your plugin.

Thank you in advance for any help you can provide on this 🙂
LL


Viewing all articles
Browse latest Browse all 59525

Trending Articles