Live data from Hacker News

In search of the perfect URL

ollysco.de

1–10 of 30 posts

Re: In search of the perfect URL

#7
post #5

It also means you can trick people: http://www.amazon.com/Intel-Quantum-Computing-Module/dp/B001...

Amazons URL's are actually quite interesting -

    Original: 
        http://www.amazon.com/Structure-Interpretation-Computer-Programs-Engineering/dp/0262510871/

    Equivalent:
        http://www.amazon.com/dp/0262510871
        http://www.amazon.com/dp/0262510871/something-else
        http://www.amazon.com/something/dp/0262510871
        http://www.amazon.com/something/dp/0262510871/something-else
It appears so long as 'dp/0262510871' is in the url (without dp/# appearing before it, but a second one after is fine) it works.

Re: In search of the perfect URL

#8
post #5

It also means you can trick people: http://www.amazon.com/Intel-Quantum-Computing-Module/dp/B001...

You can trick people, and possibly even search engines. I've wondered if blackhat SEOs could abuse such URLs to discredit content on competitors' sites.

I believe it can be a negative signal when sites stuff too many keywords in their URLs, especially if those keywords aren't relevant to the page's content. A server accepting arbitrary URLs is in a way blindly sanctioning loaded URLs.

Granted, Google's algorithms are surely very sophisticated in this regard, but fighting web spam is hard.

Re: In search of the perfect URL

#9
When building content management systems, we've taken a approach similar to this to keep URLs constant when names of articles, posts, objects might get changed by an site admin. The first time I noticed this approach was Trello.

Here's an example trello URL: https://trello.com/x/1234567/203-make-the-buttons-bigger

If you change the name of the card, the ID (203) stays the same, but the friendly part of the URL stays the same. When directing you to the card, the system doesn't care past the ID.

Re: In search of the perfect URL

#10
I find it interesting the author mentions making an effort to remove the numeric ID from the URL.

I love using numeric IDs in the URL, for one specific reason: perma-short-link.

http://qz.com/365810/whats-missing-from-this-13-year-old-gir...

Becomes:

http://qz.com/365810

Which then redirects to the proper full url. Total effort: almost nil.

Post reply on HN