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.
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → 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.
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");
Thanks you ! perfect
CutePHP Forums → Problem Solving / Help & Support → error 404
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.