Topic: Custom 404 error page
Hi,
I would to know if exists any way to create a custom 404 error page...
Exists any plugin for it or I must to do it manually?
Thanx and regards!
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.4 additions → Custom 404 error page
Hi,
I would to know if exists any way to create a custom 404 error page...
Exists any plugin for it or I must to do it manually?
Thanx and regards!
There's a hook
re_page_not_found
It will allow you to modify slightly 404 page. Go to /rewrite.php line around 80 to see details.
Thanx so much!
I have been to the page: and see this code kindly tell me how to create or link to my standard 404.shtml page that exist in my root directory:
************************
// If we don't know what to rewrite to, we show a bad request messsage
if (empty($rewritten_url))
{
define('FORUM_HTTP_RESPONSE_CODE_SET', 1);
header('HTTP/1.1 404 Not Found');
Bumping this thread.
Wanting to know how to change it to go to a custom 404 page as well.
Found all the information located in the rewrite.php, but still wanting to add link to make it go to a custom 404 that i personally made.
Normally you would do so by adding: ErrorDocument 404 /(custompagenamehere.html) to your .htaccess but here that's not the case.
Inside rewrite.php, add these 2 lines right after ($hook = get_hook('re_page_not_found')) ? eval($hook) : null;:
include FORUM_ROOT.'custompagenamehere.html';
exit();
Thanks, that worked perfect.
add this code to ur htaccess..
ErrorDocument 404 /custom404.php
add this code to ur htaccess..
ErrorDocument 404 /custom404.php
Keeshii fixed my issue, if you read my comment above you would see that command doesn't work that way since Punbb has it's own set of files that points to the 404 error page.
hmm.. thats work for me on my h taccess.
hhee.. nope, just share
PunBB Forums → PunBB 1.4 additions → Custom 404 error page
Powered by PunBB, supported by Informer Technologies, Inc.