Page 1 of 1

Default Redirection?

Posted: 22 Mar 2009, 16:35
by savvasha
Hello there!

Congrats for this very usefull component!

I wanted to ask if there is possible to add an option for a default redirection of a 404 when there isnt a set one.
For example, when someone goes to a 404 page, then he will automatically redirected to my index.php, but if I have set a redirected page to the correct one, then it will follow that.

Thanks,
Savvas

Re: Default Redirection?

Posted: 28 Mar 2009, 15:14
by savvasha
Well I found the solution from other forum.

Go to folder /templates/system find and edit error.php and after line 19 add:
<meta HTTP-EQUIV="REFRESH" content="0; url=/">

Re: Default Redirection?

Posted: 30 Mar 2009, 18:53
by Jan
Ok

Re: Default Redirection?

Posted: 24 Aug 2009, 10:42
by bellatrix
This way is more elegant (content of error.php):

Code: Select all

<?php
header("HTTP/1.0 404 Not Found");
header('Location: /404.html');
exit;
?>
whrere /404.html is your custom 404 error page

Re: Default Redirection?

Posted: 03 Feb 2010, 06:09
by beyondthenet
adding <meta HTTP-EQUIV="REFRESH" content="0; url=/"> after line 19 did not work for me.

Is this because I'm using SEF?