Hi,

I've got a doubt concerning the use of slashes on the end of URLs. I'm
currently using APPEND_SLASH to normalize all the URLs in my django
app, but I can't help noticing that some URLs would make more sense to
me without the last slash. Some examples:

http://somedomain.org/people/     -     this would return a list of
persons
http://somedomain.org/people/12     -     this would return details
about the person with id "12"
http://somedomain.org/people/12/belongings/     -     this would
return a list of belongings of person 12
http://somedomain.org/people/12/belongings/5     -     this would
return details about belonging 5 of person 12

http://somedomain.org/cars/     -     this would return a list of cars
http://somedomain.org/cars/page1     -     considering the list of
cars spans over several pages...
http://somedomain.org/cars/page2

Although this would intuitively make more sense to me than always
having a slash at the end of each URL, I can't really extract a "rule"
from it.

I've looked at how other websites are doing it and found that most
stick with always *having* slashes at the end (eg, flickr.com) or
always *not having* slashes at the end (digg.com, newsvine.com).

Is there any criteria that can in fact be considered a best practice
when designing URLs?
I would very much appreciate to know of other's experience on this.

thanks in advance,
Filipe Correia


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to