Hello folks,
I want to redirect every 404-error to homepage. What I do were :
1. Added a new file inside app/ folder named app_error.php
Note : I'm still developing with cakePHP 1.3
2. Here is the code :
<?php
class AppError extends ErrorHandler{
function error404($params) {
$this->controller->redirect('/');
}
}
?>
3. At the first time I tried it, it works fine. But, after I restart my
laptop, it wont redirect anymore. I've already delete the cache. But it
still the same. It just keep displaying my custom error page. Could someone
help me out, please?
--
Regards,,,
thom
http://mynameisthom.blogspot.com
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php