Topic: error 404

Hi Support Team,

You've recently add error404 in your last updates. It's better but :

Is it possible to configure error404 with a page of site ?

If yes, how is it possible ?

Best regards.

Re: error 404

You can configure the 404 error code message by changing the code in the core.php file. You need to  find function cn_rewrite_load() in the core/core.php file, and then in the following line:

     header("HTTP/1.0 404 Not Found");            
     die("404 Not Found");

you need to paste after the line

     header("HTTP/1.0 404 Not Found");

one more line header("Location: [url]"); where [url] is a link to the page you want to use to display error 404. The URL should be compete, e.g. http://mysqite/404.html
Result:

     header("HTTP/1.0 404 Not Found");            
     header("Location: [url]");
     die("404 Not Found");
Best regards,
CN Support team

Re: error 404

Thanks you ! perfect http://cutephp.com/forum/style_emoticons/default/smile.gif