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]

Reply via email to