[Catalyst] Handling a path of '/'
Michael Richards
mdrichards at gmail.com
Fri Dec 2 18:52:54 CET 2005
On 12/1/05, A. Pagaltzis <pagaltzis at gmx.de> wrote:
>
> * Chisel Wright <chisel at herlpacker.co.uk> [2005-12-02 00:50]:
> > I tend to take the lazy way out. My global default() redirects
> > to 'the default application action' [e.g. /client/list] and
> > each controller default usually redirects to the appropriate
> > list view.
> >
> > That way, any rubbish URLs that people use will result in
> > seeing something useful, instead of a 404.
>
> That breaks HTTP. A search engine won't know which URLs are good
> and which are rubbish, f.ex. If you want people to see something
> useful, send them a 302 to a good URL when they provide rubbish,
> or make your 404 page smart enough to provide a link "you
> probably meant such-n-such."
>
Or send a 404 status and display the /client/list anyway. That way everybody
is happy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20051202/db290b99/attachment.htm
More information about the Catalyst
mailing list