News for hackers. Stuff that matters.
Re:Probably the worst URL scheme ever by X4 on Thursday May 02, 2013 @10:11AM (#5644540)
hahaha :D

Let's put the tech sensation aside. I'm glad to know that the HN Folk have a good sense of humor :)

BTW: you can add multiple routes pointing to the same url, but allow only the SEO URLs to be indexed. This keeps the cryptic URLs for the entertainment of the Users/Crawlers.

Re:Probably the worst URL scheme ever by joosters on Thursday May 02, 2013 @10:31AM (#5644664)
How would you do this? (Leaving aside the question of 'why?')

I suppose you could try blocking crawlers from the raw URLs with an aggressive robots.txt and then put a sitemap (with friendly/SEO URLs in) somewhere for them to discover instead. Would that work?

Paranoid web spiders could flag the site as suspicious, though. Such schemes might make it seem like the website is presenting one view to the spider, and another to real visitors. Almost like it was trying to hide malware from a scanner.

Re:Probably the worst URL scheme ever by X4 on Thursday May 02, 2013 @05:36PM (#5647355)
You could simply add "index" to the page when accessed with /seo/url and noindex when accessed with the cryptic url. Additionally you can enforce that using .htaccess or nginx rules also. Your Framework and HTTP-Router class just has to support multiple URLs per page.

Basically your CMS or Framework must allow to have multiple routes like site.com/best/watch/casio and site.com/→@ðŋ]æ~@¢“«¢“¹²³»«@€^ linking to the same page.

I've used that in the past to switch languages dependant on url-path + browser-language. /en/my-article would show that english article to a german visitor, but everything else on the site like nav, terms etc. would be German. To access the Enlish site, the german visitor would have to click the appropriate flag. I could have easily added the feature to read that same article in German, by a click on a flag in the bread-crumb's mini drop-down. Example: blog»my-article[v] a click on [v] would open blog»mein-artikel etc.

Re:Probably the worst URL scheme ever by alanh on Thursday May 02, 2013 @11:40AM (#5645204)
My understanding is that you can use e.g. "rel=canonical" links to tell bots what the indexable URL of the current page is. Other tools in the box include UA sniffing and sitemap.xml.