[Catalyst] Handling a path of '/'

A. Pagaltzis pagaltzis at gmx.de
Fri Dec 2 23:54:53 CET 2005


* Michael Richards <mdrichards at gmail.com> [2005-12-02 18:55]:
> On 12/1/05, A. Pagaltzis <pagaltzis at gmx.de> wrote:
> > 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.

Clever! On second thought, I’m not sure it’s a good idea though.
If people have no indication that their URL was bad they will
likely bookmark or publish such links. Sending them to the
correct URL means external pointers to your site are less likely
to point to bad URLs.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list