100 Web Space https://forum.100webspace.com/ |
|
How to: Make my custom error page return code 404 https://forum.100webspace.com/viewtopic.php?f=7&t=4052 |
Page 1 of 1 |
Author: | Oliver [ Fri Apr 07, 2006 5:02 pm ] |
Post subject: | How to: Make my custom error page return code 404 |
On our servers the default error pages return code 200 OK. Google sitemaps for example require your error pages to return code 404 for a 404 error page, 403 for a forbidden page etc. In order to make this work, you need to set a custom error page to a php file with the following code in it: Quote: <?php
header("HTTP/1.0 404 Not Found"); ?> This thread explains how you can set your custom 404 error page. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |