Ok, I know similar questions have been asked about the trailing slash before. See http://groups.google.com/group/django-developers/browse_thread/thread/78f370da90a5a268/6e95edb134564009?lnk=gst&q=append_slash
My proposal is a little different: - I agree there should be only one url for each page. Any alias urls should be redirected. - I think that trailing slashes look ugly, and should be avoided for good style. Nice (i): http://mysite.org/members/emil http://mysite.org/members/emil/contact Not nice (ii): http://mysite.org/members/emil/ http://mysite.org/members/emil/contact/ Even worse (iii): http://mysite.org/members/emil//////////// etc Or worst (iv): http://mysite.org////members////emil//////////// So, ideally I want the (ii) and (iii) and (iv) type of urls (with more slashes than needed) redirected to the first type of urls (with no trailing slash, and no duplicate slashes). For the duplicates I don't care that much, most important is the case (ii) with one trailing slash. And this is how I imagine this to work: - In addition to the existing option of append_slash, we get one more option, which is remove_slash. - With the setting enabled, for any given url there will be two versions computed: One reduced version without duplicates and without trailing slash, and one version without duplicates but with one trailing slash appended. - The dispatcher will give both versions a try. - If the original url had a trailing or duplicate slash, and no other redirect directive has been triggered, the request will be redirected to the reduced version. - If the original url was "clean", django can now execute the action determined by the dispatcher. I think this will be more useful than the append_slash mechanic. Thanks! donquixote --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---