Do I use 404 or 200 then?
-
The FAQ says:
————————————
“Sending Proper HeadersBy default, WordPress continues to send 404 pages as if they were fine. To make search engines like Google spider these pages correctly, you can add this line to the top of your theme’s 404.php file.
<?php header(“HTTP/1.1 404 Not Found”); ?>
————————————But my 404 template already says:
————————————
<?php
header(“HTTP/1.1 200 OK”);
header(“Status: 200 OK”);
?>
————————————Quite a difference there! Which is right?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Do I use 404 or 200 then?’ is closed to new replies.