URLs should be unambiguous, i.e any logical piece of content should
have one and only one definitive URL, with any alternatives acting as
a permanent redirect.
http://simonwillison.net/2007/Feb/4/urls/
Therefore, rather than configuring urls.py to ignore case, a better
solution would be to use mod_rewrite to map the "wrong case" URLs to
the correct ones.
For example, you could configure mod_rewrite to convert all URLs to
lowercase.
RewriteEngine on
RewriteMap lowercase int:tolower
RewriteRule ^/(.*)$ /${lowercase:$1}
Hope this helps.
Bryan
On Jun 1, 6:35 pm, Ramashish Baranwal <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I would like to makeurlsof my sitecase-insensitive. As I
> understand, by default the url matching iscase-sensitive. Is there a
> way to specify in myurls.py that I want acase-insensitive match?
>
> Thanks,
> Ram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---