Live data from Hacker News

Short URLs: Why and How

sive.rs

11–20 of 172 posts

Re: Short URLs: Why and How

#11
post #3

I’m it sure what this optimises for. Those who care about SEO use long slugs for the extra juice. Those who don’t can use IDs or whatever works for them. Shareable URLs - still need to share the domain, and most of us (including sive.rs) don’t have a particularly memorable one.

You forgot one key thing -- fun. I do these things mostly for fun and smiles, for me and others.

Re: Short URLs: Why and How

#12
PG's website pretty much does this

e.g. from 2003: http://www.paulgraham.com/hundred.html

most recent post in 2022: http://www.paulgraham.com/heresy.html

I'm not sure I would want to have all my writing in a single directory, but I guess you can't argue with 20 years of longevity ... on both sivers' site and PG's.

Re: Short URLs: Why and How

#13
Regarding the example of instead of hi.html just name the file hi and use the nginx Config “default_type text/html” —- is there an equivalent to this for other webservers (Eg Caddy etc) ? Perhaps it would be cleaner to just create a directory called hi with and index.html?

Re: Short URLs: Why and How

#15

I own a 3-letter domain with a 2-letter TLD and still spells my family name. Many of my friends finds it cool when I share links via that domain. The links are indeed easy to remember but it comes at a higher yearly cost of renewal and I had forgotten to renew twice. Luckily, I was able to re-register them (nobody wants it, ;-)). Example https://oin.am/rr/

Same here, I somehow managed to get lucky enough to register https://yuv.al

Re: Short URLs: Why and How

#16

Regarding the example of instead of hi.html just name the file hi and use the nginx Config “default_type text/html” —- is there an equivalent to this for other webservers (Eg Caddy etc) ? Perhaps it would be cleaner to just create a directory called hi with and index.html?

That Nginx config is so beautiful compared to Apache .htaccess configuration for the same result.

Re: Short URLs: Why and How

#18
The "They’re enough" is ofcourse a little silly. Yes there are thousands of combinations if your short url contains any character. But his example is about words and that will leave you with less combinations.

But I like the essence of the post.

Re: Short URLs: Why and How

#19
I would have expected something about a super user with the 'su' url.

So short urls like this don't make sense if they are not explicit and you don't have a corresponding lookup table

Re: Short URLs: Why and How

#20
post #6

Depending on how much your write, URL collisions can naturally become a real problem. If you use a SSG then all your post HTML documents will be in the same directory, forever. This isn't a problem if you don't spit out posts, but if you post a lot your directory can become rather unwieldy. I'd say, at least throw a year in there: /2022/su/.

SSG can usually be configured. You could have whatever folder structure you want and still have all the URLs straight under the root.
Post reply on HN