Django adds a "slug" field, which is unique, for its urls. Then you look up the content by slug instead of id
Its admin interface suggests a slug, which is alterable if it is not unique. On 10/15/08, James Carman <[EMAIL PROTECTED]> wrote: > To be fair, I didn't find that second URL. I hand-crafted it. So, > maybe Amazon doesn't let the search engines find those types of URLs > by crawling. Wouldn't that help? > > On Wed, Oct 15, 2008 at 7:32 AM, Witold Czaplewski > <[EMAIL PROTECTED]> wrote: >> Btw... >> >> amazon.com is a very bad example for a search engine friendly site. >> Duplicate content like the posted urls are more problematic than >> non-friendly urls. >> The perfect solution (unfortunately not always possible) is only one >> friendly or meaningful url for every unique page. >> >> Witold >> >> Am Wed, 15 Oct 2008 07:11:16 -0400 >> schrieb "James Carman" <[EMAIL PROTECTED]>: >> >>> Right, I guess that's what I meant by "friendly" too. Friendly to >>> search engines, not just our eyes. >>> >>> On Wed, Oct 15, 2008 at 7:08 AM, Daan van Etten <[EMAIL PROTECTED]> wrote: >>> > Keeping keywords in URLs also improves search engine rankings. >>> > >>> > Regards, >>> > >>> > Daan >>> > >>> > On 15 okt 2008, at 13:01, James Carman wrote: >>> > >>> >> When Amazon.com does something like this, they still use an id on >>> >> the URL. Check out these two URLs (which are equivalent and >>> >> happen to be for a book I was suggesting to someone): >>> >> >>> >> >>> >> http://www.amazon.com/Pragmatic-Version-Control-Using-Subversion/dp/0974514063 >>> >> >>> >> http://www.amazon.com/dp/0974514063 >>> >> >>> >> They just add in the text to make it more "friendly" I guess. >>> >> >>> >> >>> >> On Wed, Oct 15, 2008 at 6:09 AM, Daan van Etten <[EMAIL PROTECTED]> >>> >> wrote: >>> >>> >>> >>> Hi Hbiloo, >>> >>> >>> >>> I don't know of an existing working solution. A while ago some >>> >>> people where >>> >>> working on this, according to the mailing list: >>> >>> >>> >>> http://mail-archives.apache.org/mod_mbox/wicket-dev/200802.mbox/[EMAIL >>> >>> PROTECTED] >>> >>> >>> >>> You can prefix the article title with the date (as I did on my >>> >>> blog), so you >>> >>> have less chance on name clashes. >>> >>> >>> >>> Regards, >>> >>> >>> >>> Daan >>> >>> >>> >>> On 15 okt 2008, at 11:58, Azzeddine Daddah wrote: >>> >>> >>> >>>> Hi Daan, >>> >>>> >>> >>>> Thanks for your quick response :). It's a really interesting >>> >>>> article to read. >>> >>>> I don't really want to set the ID's of my product in the URL. I >>> >>>> was thinking >>> >>>> to do something like this :) : >>> >>>> >>> >>>> >>> >>>> http://stuq.nl/weblog/articles/create-restful-urls-with-wicket<http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket> >>> >>>> in stead of >>> >>>> >>> >>>> >>> >>>> http://stuq.nl/weblog/articles/12345<http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket> >>> >>>> >>> >>>> The problem is that you cannot be sure that the article title is >>> >>>> unique. >>> >>>> >>> >>>> Kind regards, >>> >>>> >>> >>>> Hbiloo >>> >>>> <http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket> >>> >>>> On Wed, Oct 15, 2008 at 11:31 AM, Daan van Etten <[EMAIL PROTECTED]> >>> >>>> wrote: >>> >>>> >>> >>>>> Hi Hbiloo, >>> >>>>> >>> >>>>> Check out the various UrlCodingStrategies. See >>> >>>>> http://cwiki.apache.org/WICKET/url-coding-strategies.html >>> >>>>> >>> >>>>> I wrote something about RESTful urls here: >>> >>>>> http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket >>> >>>>> >>> >>>>> Regards, >>> >>>>> >>> >>>>> Daan >>> >>>>> >>> >>>>> >>> >>>>> >>> >>>>> On 15 okt 2008, at 11:19, Azzeddine Daddah wrote: >>> >>>>> >>> >>>>> Hi, >>> >>>>>> >>> >>>>>> I wanna just know if there is a way to rewrite URLs. For >>> >>>>>> example to do something like this: >>> >>>>>> >>> >>>>>> From: http://mydomain.com/product/productNumber/12345 >>> >>>>>> To: http://mydomain.com/product/this-is-my-product >>> >>>>>> >>> >>>>>> >>> >>>>>> Regards, >>> >>>>>> >>> >>>>>> Hbiloo >>> >>>>>> >>> >>>>> >>> >>>>> >>> >>>>> --------------------------------------------------------------------- >>> >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>>>> >>> >>>>> >>> >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> > >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>> > For additional commands, e-mail: [EMAIL PROTECTED] >>> > >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Sent from Gmail for mobile | mobile.google.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
