Mathieu Poussin wrote:
> Hello ,
> i have a question,
> by default , django add a slash at the end of the url , like that :
> http://my/documents/hello -> http://my/documents/hello/
>
> it's possible to add .html instead of that ? like that :
> http://my/documents/hello -> http://my/documents/hello.html
>
> if yes, how ?
>
>
> thanks , Sorry for my bad english
Hi Mathieu,

Are you sure you want to change your URLs to .html?

Personally, I think that all URLs should end with a slash, most good SEO 
specialists choose this style.

Having your URLs end with a slash is good. It looks better and shortens 
your pages address. Also, in the future, you may find that not all of 
your pages are going to be text/html.

I'm just a django newbie but I would say that you might get into trouble 
later if you ad .html to the end of all your URLs. For example what 
would happen if you wanted to have a sub-page/child-page(s) such as 
http://my/documents/hello/world/ or 
http://my/documents/hello/there/how-are-you/  If you had a page called 
http://my/documents/hello.html it wouldn't really make sense.

I think having URLs end with a slash gives you more options in the 
future, but that's just my opinion :)

Thanks,
Hope that helps,

-- 
Dean Edridge
http://www.zealmedia.co.nz/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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