Questions on dealing with bad URLs.

2006-06-30 Thread Daniel King

If I set debug level to 0, error 404 shows if I input an error URL.
Because there are no matching controllers or actions.
Can we make it redirect to another URL(use default controller or
action) instead of showing error 404?
For example, /pages/badaction can be redirected to /pages/index.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Questions on dealing with bad URLs.

2006-06-30 Thread Grant Cox

http://cakebaker.wordpress.com/2006/06/15/writing-a-custom-error-handler/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---