It is currently Thu Mar 28, 2024 10:19 am


All times are UTC


Forum rules


Please click here to view the forum rules



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to: Make my custom error page return code 404
PostPosted: Fri Apr 07, 2006 5:02 pm 
Site Admin
Site Admin

Joined: Fri Feb 11, 2005 7:43 am
Posts: 1818
Location: 100WebSpace's Headquarters
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.

_________________
Read the F.A.Q. before asking a question!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
100WebSpace © 2011