how can i make a custom 404 page ?
i dont want to see this below tkx
[ external image ]
how to make a custom 404
how to make a custom 404
Last edited by twc on Mon Sep 26, 2011 2:40 pm, edited 1 time in total.
Re: how to make a custom 404
Hi twc,
perhaps it's enough to change $tx['error']['404']?
Christoph
perhaps it's enough to change $tx['error']['404']?
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: how to make a custom 404
tkx butt i mean outsidecmb wrote:Hi twc,
perhaps it's enough to change $tx['error']['404']?
Christoph
i want to make 1 custom page, so wenn its error its redirect to 404 page.
Re: how to make a custom 404
Hi twc,
I found, that this wish was already expressed several times in the forum and in the wiki. So a quick and dirty hack is to change function shead in cms.php:
Christoph
I found, that this wish was already expressed several times in the forum and in the wiki. So a quick and dirty hack is to change function shead in cms.php:
Code: Select all
function shead($s) {
global $iis, $cgi, $tx, $txc, $title, $o;
if ($s == '401')header(($cgi || $iis)?'status: 401 Unauthorized':'HTTP/1.0 401 Unauthorized');
if ($s == '404') header('Location: http://www.google.com'); //enter the URL you wish to be redirected here; may be another CMSimple page
$title = $tx['error'][$s];
$o = '<h1>'.$title.'</h1>'.$o;
}
Christoph M. Becker – Plugins for CMSimple_XH
Re: how to make a custom 404
cmb wrote:Hi twc,
I found, that this wish was already expressed several times in the forum and in the wiki. So a quick and dirty hack is to change function shead in cms.php:ChristophCode: Select all
function shead($s) { global $iis, $cgi, $tx, $txc, $title, $o; if ($s == '401')header(($cgi || $iis)?'status: 401 Unauthorized':'HTTP/1.0 401 Unauthorized'); if ($s == '404') header('Location: http://www.google.com'); //enter the URL you wish to be redirected here; may be another CMSimple page $title = $tx['error'][$s]; $o = '<h1>'.$title.'</h1>'.$o; }
tkx
works now..
http://fiberdordrecht.nl/try