On Tue, Jul 13, 2010 at 6:05 AM, Alexander Zhabotinskiy
<[email protected]> wrote:
> How to make routes case insensitive
>
> site.com/Groups
> site.com/GROUPS
>
> is different links. I'm looking for the solution at http://routes.groovie.org/
> and it's nothing.

You may be able to do it with a catchall route and a function condition.

http://routes.groovie.org/setting_up.html#conditions

Or you could subclass Routes to lowercase the URL before matching it.

But I agree with Mike Burrows: URLs are case-sensitive and should
remain that way. If you allow wrong-case URLs, they should redirect to
the canonical URL rather than simply returning the content.

-- 
Mike Orr <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to