[HN Gopher] Cool URIs Don't Change (1998)
       ___________________________________________________________________
        
       Cool URIs Don't Change (1998)
        
       Author : DamonHD
       Score  : 276 points
       Date   : 2023-03-03 21:59 UTC (1 days ago)
        
 (HTM) web link (www.w3.org)
 (TXT) w3m dump (www.w3.org)
        
       | k__ wrote:
       | If you want permanent URIs, then use IPFS instead of HTTP.
        
       | logbiscuitswave wrote:
       | I wish someone at Microsoft would read this. Every 6 months it
       | seems like everything around their documentation site changes and
       | half the links permanently 404. The amount of link rot is just
       | staggering.
        
         | RobotToaster wrote:
         | A number of times I've clicked hardcoded links in windows only
         | for it to redirect to their homepage.
        
         | gdprrrr wrote:
         | Also Sun, Oracle and OpenJDK please
        
       | sph wrote:
       | Shameless self promotion: this is the problem my project sets out
       | to solve, because while this advice is obvious and well known,
       | URIs keep changing and sites keep breaking.
       | 
       | So I'm developing a service that every day crawl your website and
       | tests every single resource, be it regular links, images, CSS,
       | fonts, and also external links over one has little control. And
       | one of the features coming soon post-launch is getting notified
       | if you change an URL and forgot to set a redirect from the old
       | one, breaking SEO, bookmarks, and this very advice.
       | 
       | I'm starting a closed alpha this month and launch the next, so if
       | you're interested in trying this out, send me an email.
       | 
       | https://bernard.app
        
         | DamonHD wrote:
         | And will it offer (efficient) copy-n-paste redirect rules to
         | add to your Apache / ISS / etc config to fix the issue? That
         | would be interesting.
        
           | sph wrote:
           | Not yet but that is an excellent idea. I'll add it to my todo
           | list :-)
           | 
           | EDIT: it's harder than it seems, because it is almost
           | impossible to tell what is the new URL if you forgot to set
           | up the redirect.
        
             | DamonHD wrote:
             | And you have no idea of the context available in the config
             | file, but that may be where the value lies...
             | 
             | (Feel free to add earth.org.uk to your trial if you wish,
             | email as here and/or on the site. I can share config with
             | you.)
        
       | alexchantavy wrote:
       | Ah the good ol' days of cgi-bin and perl scripts on Apache.
       | 
       | When I first learned Apache I thought that all URIs served by a
       | webserver needed to be the same name as the file that they
       | pointed to. Then I learned (embarassingly) much later that in
       | HTTP the URI name can be anything at all and the content that it
       | pointed to didn't even need to be a static file, that it could be
       | dynamic.
        
       | beders wrote:
       | Yeah, I wish more people would care.
       | 
       | I bet 50% of my bookmarks have become obsolete because the URLs
       | weren't err cool.
        
         | theK wrote:
         | Interestingly, I have found out that there is a lifetime
         | threshold, especially in blogs. I often bookmark relatively new
         | content only to find out that six months later it has 404ed.
         | But then you bookmark some old article and find out ten years
         | later that it still is there, regardless if the blog is still
         | alive or not.
        
       | pwdisswordfishc wrote:
       | > Historical note: At the end of the 20th century when this was
       | written, "cool" was an epithet of approval particularly among
       | young, indicating trendiness, quality, or appropriateness. In the
       | rush to stake our DNS territory involved the choice of domain
       | name and URI path were sometimes directed more toward apparent
       | "coolness" than toward usefulness or longevity. This note is an
       | attempt to redirect the energy behind the quest for coolness.
       | 
       | Cool. Now what's an URI?
        
       | mlinksva wrote:
       | Wonder if this was posted due to
       | https://prodromou.pub/@evan/109960548029431093
        
         | DamonHD wrote:
         | Yes!
        
       | quitit wrote:
       | Dear home-owner,
       | 
       | I like the flowers in your front garden. Please be cool and never
       | change them. I like them there when I drive by from time to time.
       | 
       | No I won't just take a photo of them, or plant my own. I need you
       | to maintain them, never landscape your property or be uncool. It
       | doesn't bother me that it costs you money to maintain them, you
       | should have planned for that before I had a chance to see your
       | lovely flowers.
       | 
       | Please hand this note to the next home owner. Since I want the
       | flowers to live forever and humans don't.
       | 
       | Sincerely, Idealism.
       | 
       | (tongue firmly in my cheek)
        
         | iopq wrote:
         | The homeowner is the one that posted about a garden in front of
         | their home in their own newsletter. I came there to find out
         | the garden had been moved, but with no notice of where the new
         | address is.
         | 
         | I have to go into the archives to look at the flowers, which
         | means the archive person has to give me images from whenever
         | they took the photo, where it might not be from the same year
        
           | kixiQu wrote:
           | Like, are they? "Their own newsletter" makes it sound like
           | internal links remain broken, something that I will
           | immediately cede is rude to a visitor. But - even if I had
           | publicized something and said "hey everybody come look", it's
           | only social context that determines whether you infer from
           | that "hey everybody come look (forever)". And I think that
           | social context is sort of nonsense. For other people who've
           | created links - that's something _they_ should take care of.
           | 
           | I try to clear out my blogroll so people don't see broken
           | links - but no one on that list owed _me_ their permanent web
           | presence.
        
         | kixiQu wrote:
         | Too many gardeners neglect to acquire the necessary mineral
         | rights to prevent broken lilies. Lamentable lack of
         | forethought.
        
       | pheeney wrote:
       | I always struggle designing urls in the first place with SEO in
       | mind.
       | 
       | Do I put an ID that bad actors can crawl in ascending order? Do I
       | hash the ID? Do I have a unique slug that requires thought to
       | avoid clashing in the future? Does that add another DB lookup or
       | are you looking up the ID anyway? Do you do /id-slug or /id/slug
       | but if you move to Wordpress or off your stuck with /slug or
       | something with no ID.
       | 
       | Maybe none of it matters but it seems like it does, especially if
       | you consider it a change you expect to last the life of the
       | domain. Every tech solution instead of rolling their own has
       | their own unique way of handling it.
        
         | naasking wrote:
         | It seems bizarre to me that URLs should matter for SEO. We have
         | hypermedia for that. URLs should technically be opaque and make
         | sense only to the server.
        
       | bungle wrote:
       | Cool URIs change all the time. And then they come back. It's like
       | with fashion.
        
       | nextaccountic wrote:
       | When Rust separated its forumses, discuss.rust-lang.org became
       | internals.rust-lang.org and a new forum, users.rust-lang.org was
       | created. the discuss one had a nice redirect to internals, but
       | for some freaking reason it was deleted and all now old links are
       | permanently broken (you can fix them manually in the url though)
       | 
       | If someone here is running any part of the Rust infra, please
       | consider getting this redirect back.
        
         | Dalewyn wrote:
         | >forumses
         | 
         | *Eye twitch*
        
           | IceWreck wrote:
           | I read 'forumses' in gollum's voice
        
           | Vecr wrote:
           | Fora is the correct word, right?
        
             | thecosmicfrog wrote:
             | Let's just call them "forii" and call it a day.
        
             | Aachen wrote:
             | For words like forum and datum, both are possible, but also
             | there's a clearly more commonly used option that doesn't
             | confuse everyone. In Dutch, fora is probably about equally
             | common as forums; in English I'm not sure I've seen it ever
             | used. It's like using datum to mean a single data point:
             | "look at me being clever about word technicalities and
             | making everyone do a double take to understand this
             | sentence". At least, that's how I feel when seeing a native
             | speaker use datum instead of data point in English, or in
             | Dutch using data to mean multiple calendar dates (the
             | common word being datums).
        
               | nwatson wrote:
               | Data should be uncountable, like meat. Datum -> data
               | point.
        
             | nkrisc wrote:
             | You are technically correct, the best kind of correct. But
             | in reality correctness in language is dictated by usage.
             | After all, their r hella many formerly "correct" parts of
             | language no1 uses ne more or sth.
             | 
             | Otherwise we'd still be speaking proto-Indo European
             | arguing about words that came from whatever language came
             | before that.
        
             | BalinKing wrote:
             | Personally, I'd go for "forums." (I don't actually think
             | I've ever actually heard "fora," so I'm skeptical that it's
             | even used enough to qualify as a "valid" English word...)
        
               | mcbits wrote:
               | It's definitely valid (e.g. "public fora"), but it could
               | be considered archaic or formal.
        
             | svorakang wrote:
             | Hah, I fought a battle for months at a Nordic automotive
             | OEM, to try to stop them from overusing "fora", to no
             | avail. They were so convinced that it was the proper word
             | to use, they also used it in singularis, as in "We will
             | bring that up in another fora", often then also referring
             | to a single meeting to be held in the next day. This is
             | only one tale out of many on how corrupted the corporate
             | Scandinavian English can be, and sadly, since being
             | essentially marinated in this parlance, I can probably only
             | detect and reflect of a fraction of the linguistical
             | felonies committed around me, and worse: by myself.
        
               | _dain_ wrote:
               | fora eunt domus
        
           | andai wrote:
           | We hates them! _Gollum! Gollum!_
        
         | kibwen wrote:
         | I recommend bringing this up in the Zulip channel for the Rust
         | infrastructure team: https://rust-
         | lang.zulipchat.com/#narrow/stream/242791-t-infr...
        
         | extrememacaroni wrote:
         | This is about cool urls tho.
        
       | vmoore wrote:
       | > Except insolvency, nothing prevents the domain name owner from
       | keeping the name
       | 
       | I maintained 100+ domains over the years, and had to stop
       | renewing most of them because my income drastically got reduced
       | and I couldn't afford to renew them 'forever'. I was careful
       | about which ones got nuked. They were typically sites that
       | received very little traffic and had their heyday and fun in the
       | sun, and there was no point in having them live on for
       | perpetuity.
       | 
       | The few remaining ones I renew (sometimes 10 years in advance
       | because ICANN) still get a lot of traffic and I regularly check
       | the hosting setup to see if they're operating properly, and I
       | check for 404s and downtime, or missing assets like images, JS,
       | etc
       | 
       | A domain is something you commit to. If the project atrophies,
       | you have to be willing to nuke it. But there will always be
       | domains which are too good to nuke.
        
         | teddyh wrote:
         | > _I maintained 100+ domains_
         | 
         | Well, that's your problem, right there. Use one stable domain
         | which you pay for, and use _subdomains_. That's what the DNS is
         | for.
        
           | davchana wrote:
           | I too used to get domains, now about 5 years ago I got domain
           | byDav.in & now most of my domains are subdomains like,
           | hukamnama.bydav.in apps.bydav.in basically foo.bydav.in
           | 
           | Later I got tired of adding txt records, now my simple apps
           | are like spa.bydav.in/weather or spa.bydav.in/radio
           | spa.bydav.in/otp.html
        
       | tiffanyh wrote:
       | Just remember that...
       | 
       | URIs != URLs
       | 
       | URLs == URIs
        
         | notpushkin wrote:
         | URLs [?] URIs
        
       | tempestn wrote:
       | Only tangentially related, but reminds me of something I ran
       | across recently. I've been maintaining a couple of old blogs my
       | wife used to write for years; I don't want to get rid of them,
       | but it was a bit of a pain having to regularly keep wordpress
       | updated and fix any related issues. Recently found a WP plugin,
       | Simply Static, that will generate a static site from a wordpress
       | blog, maintaining all the URLs and such. So it's perfect for my
       | use case of archiving something that won't be added to in the
       | future. But you can also use it for a live site, just exporting a
       | new static version after each post.
       | 
       | Used it for those couple of blogs with zero issues, and now I can
       | keep the originals around but inaccessible from the internet, so
       | I don't have to worry about keeping them updated, aside from when
       | I update php itself.
        
         | heywhatupboys wrote:
         | link?
        
           | cafeinux wrote:
           | The first result of a "simply static wordpress" search seems
           | to correspond to what you're asking for :
           | https://wordpress.org/plugins/simply-static/
        
             | heywhatupboys wrote:
             | no for the blog, I would like to be nostalgically reminded
             | of blogs, they are hard to come by
        
               | sundarurfriend wrote:
               | > So it's perfect for my use case of *archiving*
               | something
               | 
               | > I can keep the originals around but *inaccessible* from
               | the internet
               | 
               | So it's only tangentially related to cool URIs not
               | changing, since in this case the actual URIs did
               | (apparently) go kaboom, this plugin just helps maintain
               | the internal links within their local archive.
        
               | irdc wrote:
               | Maybe https://ooh.directory/ can help?
        
               | heywhatupboys wrote:
               | that's awesome thanks! Do you know of any archive site
               | that stored some of the old 2000's blogs?
        
       | [deleted]
        
       | scoofy wrote:
       | What about in a wiki where things can be created or destroyed?
        
         | layer8 wrote:
         | If you genuinely want to make content unavailable, feel free
         | too do that. The article isn't really about that.
         | 
         | Wikis typically keep a history, so they can show a "this topic
         | has been removed" page that still lets you access the history.
         | Or if the topic was merely moved, trigger a redirect. A
         | redirect is perfectly fine, it means that links using the old
         | URL continue to work.
        
         | Aachen wrote:
         | Use a permalink.
         | 
         | I learned this the hard way when Wikipedia was updated to
         | include some (iirc) dumb password advice (or maybe it was about
         | hashing) and I nearly included that in a customer report
         | because my snippet from a previous report used the normal
         | en.wikipedia.org/whatever form instead of
         | en.wikipedia.org/whatever?oldid=123.
         | 
         | Wish they wouldn't call it old ID: the latest revision is also
         | referred to as such, and this just looks silly, like why is my
         | consultant linking to a stale ID? Call it page revision or just
         | ID or something... this discourages use of them but it's a core
         | feature.
         | 
         | Also, Github links that die all. the. damn. time. Please use
         | the permalink option when copying a file link: this will
         | include the commit hash in the URL and so the link will also
         | work if the file was moved, branch renamed, contents changed,
         | etc.
        
           | scoofy wrote:
           | I guess I don't find: "just use a permalink" without a
           | weighing the pros and cons.
           | 
           | I guess I weirdly find descriptive links valuable. I could
           | easily do both, but I think just recording old links is
           | probably an option in the long run. I just think people
           | should be able to click on a URL and know where they're
           | probably going.
           | 
           | This still doesn't explain what to do when DB entries are
           | destroyed.
        
             | Aachen wrote:
             | Neither of the examples I gave obfuscate links when making
             | permalinks.
             | 
             | https://de.m.wikipedia.org/w/?title=Valheim&oldid=231146307
             | page title is still in the link, in addition to the
             | revision ID
             | 
             | https://github.com/git/git/blob/d15644fe0226af7ffc874572d96
             | 8... also says exactly where you're going, it just replaces
             | the branch master or whatever with the commit. You still
             | see the repository and file path.
             | 
             | Permalinks don't have to be obfuscated. The downside I
             | would rather mention is that the link doesn't update to
             | newer revisions if improvements are made. It's not like an
             | LTS version where fixes are still applied but no changes (I
             | guess because every change is supposed to be an improvement
             | to the topic, but yeah, not always).
        
         | Karellen wrote:
         | Then it will be uncool.
         | 
         | Heinous, even.
        
           | scoofy wrote:
           | So like... wikipedia does?
           | 
           | https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
        
         | themodelplumber wrote:
         | Created, not a problem.
         | 
         | Destroyed, handle gracefully at different levels, and possibly
         | in different ways across the site depending on editorial
         | policy.
         | 
         | Things should generally not just disappear and leave URIs non-
         | functional. Sometimes it does have to happen but those times
         | should be true exceptions.
        
           | scoofy wrote:
           | I mean, that's all fine and good, but how does one have a
           | descriptive uri, while also having it unchanged?
           | 
           | Wikipedia has descriptive URI's, presumably they change over
           | time. I know some folks would prefer never breakage to
           | anything else, but it seems like having a permanent URI with
           | a UUID and a descriptive URI that _could_ change over time,
           | if, say, a building changes it 's name:
           | 
           | https://en.wikipedia.org/wiki/Willis_Tower
           | 
           | https://en.wikipedia.org/wiki/Sears_Tower
           | 
           | One now redirects.
           | 
           | I feel like, yea, it's cool if your URI's never change, but
           | as someone building a wiki, it's really always seemed a
           | problem without a right answer. I'm honestly asking because
           | the only way I know how to build my site with this feature is
           | to just save the previous uri every time the descriptive once
           | changes.
        
             | themodelplumber wrote:
             | Ah, so what you have is a problem that's more special than
             | you can briefly describe for readers here. :-)
             | 
             | That's interesting to me, as a topic.
             | 
             | Some don't mind having that kind of problem, because it
             | opens a door through which they can gesture at a veritable
             | treasury of details. Details are interesting and very
             | important to them. Perhaps they are even somehow the master
             | of those particular details, for having considered them! Ah
             | ha, great.
             | 
             | Others hate it, because they feel like they are springing
             | an unfair trap on innocent passers-by who suggest a simple
             | solution to what seems like a simple problem.
             | 
             | I can't say I can solve your problem, and for one it seems
             | different now than it did before, in significant ways.
             | 
             | But having walked into it, I can tell you I know this kind
             | of situation! I hope you enjoy puzzling it out, whether
             | through others' ideas or your own well-calibrated wiki-
             | developer brain.
        
             | PeterisP wrote:
             | Redirects is fine. "Cool URIs don't change" refers to the
             | fact that this resource should be reachable on that URI
             | forever, which a redirect solves; changing URIs _without_
             | keeping the old URI is what many people do and that 's not
             | that nice.
        
       | divbzero wrote:
       | This was written by Tim Berners-Lee and should have "(1998)"
       | appended to the title.
       | 
       | Related:
       | 
       |  _Cool URIs Don 't Change (1998)_ -
       | https://news.ycombinator.com/item?id=29442818 - Dec 2021 (72
       | comments)
       | 
       |  _Cool URIs don 't change (1998)_ -
       | https://news.ycombinator.com/item?id=27537840 - June 2021 (140
       | comments)
       | 
       |  _Cool URIs Don 't Change (1998)_ -
       | https://news.ycombinator.com/item?id=23865484 - July 2020 (156
       | comments)
       | 
       |  _Cool URIs don 't change (1998)_ -
       | https://news.ycombinator.com/item?id=11712449 - May 2016 (122
       | comments)
       | 
       |  _Cool URIs don 't change._ -
       | https://news.ycombinator.com/item?id=4154927 - June 2012 (84
       | comments)
       | 
       |  _Tim Berners-Lee: Cool URIs don 't change (1998) _ -
       | https://news.ycombinator.com/item?id=2492566 - April 2011 (26
       | comments)
       | 
       |  _Cool URIs Don 't change_ -
       | https://news.ycombinator.com/item?id=175199 - April 2008 (9
       | comments)
        
         | crazygringo wrote:
         | Yup. This has been posted so much over the years, I'm not sure
         | there's anything left to comment that hasn't already been
         | commented... :P
        
           | esperent wrote:
           | There's always new things to discuss, even if they're the
           | same things. Because the people doing the discussing are new.
           | For example, I've never seen those old discussions and I
           | never in a million years would have searched for and found
           | them.
           | 
           | I've found the key, when you're on a forum and see something
           | discussed more than once, is to change your thinking. Instead
           | of getting annoyed, think _great, a new cohort of people will
           | get to talk about this important topic_.
           | 
           | This kind of reframing works in many different areas of my
           | life and the older I get, the more I have to apply it to
           | avoid becoming a grumpy old curmudgeon.
           | 
           | (Links to the old discussions are great though, they just
           | don't need to be followed up by complaining every time.)
        
             | wruza wrote:
             | So much this. Many (most?) oldstyle forums suffered from a
             | pretty strict no-duplicate rule even in "free talk"
             | sections. This led to few oldtime gatekeepers dominating
             | these places, new post anxiety and general stagnation,
             | because new users had no way to learn occasionally or talk
             | about things. When I started to visit HN, it was so
             | relieving to see that well-separated duplicates don't get
             | moderated away or even discouraged. It simply means that
             | _you_ can eventually learn what you don't know yet or
             | missed for some reason, can participate /discuss it from a
             | today's point of view and renew your understanding.
             | 
             | Repetition may be seen as a visitor's expense, but
             | appreciating it creates a huge net profit over time, cause
             | it helps a community to stay fit and alive.
        
               | unholythree wrote:
               | All the tut-tutting makes searching harder for other
               | users too! You end up with relevant and active looking
               | threads that are actually just regulars dunking on the
               | poster for not searching.
        
             | codetrotter wrote:
             | > Instead of getting annoyed, think great, a new cohort of
             | people will get to talk about this important topic.
             | 
             | https://xkcd.com/1053/ :)
        
           | umeshunni wrote:
           | Cool comments don't change
        
           | q7xvh97o2pDhNrh wrote:
           | Nah, it's like that old saying:
           | 
           | > No man ever visits the same URI twice, for even if it is a
           | cool URI which does not change, he is not the same man.
        
           | mattmcknight wrote:
           | Now it's more like, "Cool Web Apps actually have internal
           | URIs".
        
           | echelon wrote:
           | > I'm not sure there's anything left to comment that hasn't
           | already been commented
           | 
           | I would have agreed with you a year ago. But now, with AI,
           | the entire web model may become less of a thing.
           | 
           | I thought the web would endure forever, despite the attacks
           | from platforms and browser monopolizers.
           | 
           | Now it looks like social will soon be overrun by robots
           | (maybe creepy ID verification will save it?), and the need to
           | publish information will diminish as you can generate it and
           | probably share the results on some future AI platform.
        
             | nigamanth wrote:
             | > you can generate it
             | 
             | AI applications function with the web model. The web will
             | to some extent endure forever, I doubt it'd ever go fully
             | extinct. We may use AI tools more, but not for everything.
        
             | sclarisse wrote:
             | > some future AI platform
             | 
             | What does that even _mean_? Because it could credibly mean
             | like 20 different things, some of which would clearly be
             | nonsense, but you haven't left us with a specific enough of
             | an idea to engage with either way.
        
               | echelon wrote:
               | A closed system where you create and consume an endless
               | array of AI-generated content without leaving.
        
             | matheusmoreira wrote:
             | Maybe it's the opposite. "Social" spaces will become so
             | flooded with worthless AI posts trying to grab people's
             | attention for advertising purposes that real websites
             | created by real people will flourish once again. That's
             | what I want to believe.
        
       | kristopolous wrote:
       | It's a system design oversight. Permanence was long sought for.
       | I'm not claiming I've got all the solutions but it's yet another
       | example of how the web is incomplete.
       | 
       | If you read the contemporaneous history from the early 1990s when
       | the concrete of the web was still wet it should become obvious
       | that it's worth a revisit of the fundamentals
       | 
       | For instance, DNS could include archival records or the URL
       | schema could have an optional versioning parameter. Static
       | snapshot could be built in to webservers and archival services
       | would be as standard as AWS or a CDN; something all respectable
       | organizations would have, like https.
       | 
       | These only sound nutty because it's not 1993 anymore and we've
       | presumed these topics are closed.
       | 
       | We shouldn't presume that. There's lots of problems that can be
       | fixed with the right effort and intentions. Especially because we
       | no longer live in the era where having 1GB of storage means you
       | have an impressively expensive array of disks.
       | 
       | Many unreasonable things then are practically free now
        
         | myfonj wrote:
         | I am constantly pondering ideas how could intuitive and "cool"
         | web without broken URLs look like, and whether mechanisms for
         | it are or are not embraided into original standards.
         | 
         | Farthest I got is that we probably should see _two addresses
         | where we currently see one in our URL bar_ : Locator and
         | Identifier and whole web-related technology should revolve
         | around this distinction with immutability in mind.
         | 
         | - On server side _Locators_ should always respond with
         | locations of Identifiers or other Locators. So, redirects.
         | Caching headers makes sense here, denoting e.g.  "don't even
         | ask next five minutes". - Content served under _Identifier_
         | should be immutable. So  "HTTP 200" response always contains
         | same data. Caching headers here makes no sense at all, since
         | the response will always be the same (or error).
         | 
         | In practice, navigating to https://news.ycombinator.com/
         | (locator) should always result in something like HTTP 302 to
         | https://news.ycombinator.com/?<timestamp> or any other
         | identifier denoting unique state of the response page. Any
         | dynamic page engine should first provide mechanism producing
         | identifiers of any resulting response.
         | 
         | I feel there are some fundamental problems in this utopian
         | concept (especially around non-anonymous access), but
         | nevertheless would like to know if it could be viable at least
         | in some subset current/past web.
        
         | snowwrestler wrote:
         | I think this is being handled the right way now by the Internet
         | Archive. Sort of like a library that keeps old copies of
         | newspapers around on microfiche, or a museum that has samples
         | of bugs in Indonesia 100 years ago. They have a dedicated
         | mission to preserve, around which supportive people can
         | organize effort and money.
         | 
         | I don't think this can be solved by decentralized protocols. A
         | lot of folks just won't put in the effort. Quite a few
         | companies already _actively_ delete old content; there's no way
         | they are going to opt into web server software that prevents
         | that.
        
       | ape4 wrote:
       | (as far as I know) URNs didn't catch on much
       | https://en.wikipedia.org/wiki/Uniform_Resource_Name
        
       | politician wrote:
       | Please add (1998) to the title.
        
       | brigandish wrote:
       | Obligatory nod to the tag URI schema[1]. Embed them in your blog
       | pages or whatever and at least they'll still be discoverable
       | after a URL change.
       | 
       | [1] http://www.faqs.org/rfcs/rfc4151.html
        
       | CM30 wrote:
       | It may be an old article now, but the point still stands all
       | these years laters. Like, I get it. If the site shuts down, then
       | the URLs are obviously going to change there.
       | 
       | But the sheer amount of times where sites get redesigned and
       | somehow every link to the site breaks at once is utterly
       | ridiculous. There's zero reason to change your URLs every time
       | you change CMS, and there's even less of a reason not to redirect
       | the old URL format to the new one.
       | 
       | Yet somehow it happens constantly, especially on news sites which
       | seem to love changing their site structure every few months or
       | something. Sigh.
        
         | Dalewyn wrote:
         | >There's zero reason to change your URLs every time you change
         | CMS, and there's even less of a reason not to redirect the old
         | URL format to the new one.
         | 
         | Are you willing to pay them for that work?
         | 
         | No?
         | 
         | There's your reason.
        
           | Symbiote wrote:
           | Existing links to your site should be fairly valuable. Search
           | engines know what links there, users following links from
           | other pages think your site is more useful than the current
           | page.
        
             | snowwrestler wrote:
             | Last time we redesigned a major site, we carefully analyzed
             | every URL for organic traffic value. Most were worthless:
             | barely indexed by Google and receiving at most a couple
             | visits a month. We killed most of them and saw improvements
             | in overall traffic from search.
             | 
             | I think a lot of folks originally thought of websites like
             | reference books. And some should still be thought of that
             | way (Wikipedia, open source documentation, etc). I used to
             | try very hard to keep all URLs functional during site
             | redesigns. We accumulated thousands and thousands of
             | redirects... most of which were never used.
             | 
             | I've since come to consider that a lot of sites are more
             | like magazines: useful for a limited time span but not
             | something that needs to live on your shelf forever.
        
           | phendrenad2 wrote:
           | Weird question. I'm equally willing to pay for working links
           | as I am to pay for the content, so the variable becomes
           | irrelevant. A broken link is no different from broken
           | content.
        
           | notpushkin wrote:
           | No, but I am willing to stop visiting them and/or linking to
           | them.
        
             | Dalewyn wrote:
             | Thanks for proving my point: There's no value in pursuing
             | people who aren't your customers, who aren't providing you
             | value.
             | 
             | If we as end-users want URLs to not rot away, we need to
             | put value on working URLs that convinces webmasters to put
             | in the effort to maintain working URLs.
        
             | sundarurfriend wrote:
             | Yeah. When a site says "the old xyz.oursite.com pages no
             | longer exist. use the search bar to blah blah", there's 90%
             | chance that I'm just going to close the tab and just try a
             | different (even if non-official) site.
        
           | [deleted]
        
           | unholythree wrote:
           | If it's a business, it certainly makes me less interested in
           | using their product or service. Honeywell's site has this
           | problem and now I associate their brand with annoyance at
           | trying to navigate dead links to technical documentation. I
           | end up thinking stuff like: "I wish this was a Siemens part"
           | which I can't imagine is their goal.
        
         | nabla9 wrote:
         | I think there are clear reasons for this.
         | 
         | 1. Using URL schemes that come with the framework. Change of
         | framework breaks everything.
         | 
         | 2. Simply not caring. If the site is commercial, preserving
         | rarely accessed parts for the sake of consistency is not
         | important for them. PR carousel with big stock images and 1-3
         | sentence empty statements is the norm. You are not supposed to
         | "use the site" you are supposed to come trough channels and
         | campaigns that are temporary.
        
       | franze wrote:
       | this is how I do URLs. My personal battle proven URL rules.
       | 
       | URL-rules
       | 
       | URL-Rule 1: unique (1 URL == 1 resource, 1 resource == 1 URL)
       | 
       | URL-Rule 2: permanent (they do not change, no dependencies to
       | anything)
       | 
       | URL-Rule 3: manageable (equals measurable, 1 logic per site
       | section, no complicated exceptions, no exceptions)
       | 
       | URL-Rule 4: easily scalable logic
       | 
       | URL-Rule 5: short
       | 
       | URL-Rule 6: with a variation (partial) of the targeted phrase the
       | page wants to get found for
       | 
       | URL-Rule 1 is more important than 1 to 6 combined, URL-Rule 2 is
       | more important than 2 to 6 combines, ... URL-Rule 5 and 6 are a
       | trade-of. 6 is the least important. A truly search optimized URL
       | must fulfill all URL-Rules.
       | 
       | My preferred URL structure is:
       | https://www.example.com/%short-namespace%/%unique-slug%
       | 
       | https:// - protocol
       | 
       | www - subdomain
       | 
       | example - brand
       | 
       | .com - general TLD or country TLD
       | 
       | %short-namespace% - one or two letter that identify the pagetype,
       | no dependency to any site hierachy
       | 
       | %unique-slug% - only use a-z, 0-9, and - in the slug, no double
       | -- and no - or - at the end.
       | 
       | Only use "speaking slugs" if you have them under your total
       | editorial control.
       | 
       | i.e.:                 https://www.example.com/a/artikel-name
       | https://www.example.com/c/cool-list
       | https://www.example.com/p/12345 (does not fulfill the least
       | important URL-Rule 6)
       | https://www.example.com/p/12345-prouct-name
        
         | eyelidlessness wrote:
         | I have no idea why your text is grey because this is all very
         | good advice. The character class limitations might sound
         | arbitrary but no one who takes this seriously is handling
         | Unicode in URLs because there are too many risks. (Not that I'm
         | an authority on the subject but my most regrettable
         | StackOverflow contribution is the regular expression for IRIs
         | which has some flaws and I'll never revise it because it's not
         | a good idea.)
        
         | perilunar wrote:
         | > URL-Rule 1 is more important than 1 to 6 combined
         | 
         | implies that rules 2 to 6 combined have negative value.
        
         | teddyh wrote:
         | You're not thinking very long-term. As the article explains,
         | for long-term resources, your should put some form of date in
         | the URL, such that you do not continually deplete the
         | namespace.
         | 
         | For example, suppose that you once wrote an article on AI, in,
         | say, 2008, with the URL
         | 
         | https://www.example.com/a/current-developments-in-ai
         | 
         | When the subject, in this case AI, suddenly changes in later
         | years, and you want to write an update, you'll be forced to use
         | this monstrosity of a URL:
         | 
         | https://www.example.com/a/current-developments-in-ai-2
         | 
         | Why not start with
         | 
         | https://www.example.com/a/2008/current-developments-in-ai
         | 
         | so that you can then create
         | 
         | https://www.example.com/a/2023/current-developments-in-ai
         | 
         | ? (This will also benefit readers, similarly how HN likes
         | having the year parenthesized in the submitted title.)
        
           | crooked-v wrote:
           | Just give each entry a unique ID and put it in the URL:
           | https://www.example.com/a/abcdefghi/current-developments-
           | in-...
           | 
           | Then if you ever see the need to shuffle around your site,
           | you can do redirects based on unique ID without needing to
           | keep track of slugs or other metadata.
        
             | wruza wrote:
             | Also make it accessible by id only, so that:
             | 
             | https://www.example.com/a/abcdefghi/current-davalopments-
             | in-...
             | 
             | https://www.example.com/a/abcdefghi/current-developments-
             | in-...
             | 
             | https://www.example.com/a/abcdefghi
             | 
             | are all the same.
        
             | teddyh wrote:
             | But then what is the title doing in the URL at all, if
             | you're using IDs? It's just unnecessary junk; spam in the
             | URL, if you will.
        
           | _dain_ wrote:
           | Why not just keep exactly the same address but add an update
           | to the contents?
        
           | jefftk wrote:
           | I'd rather occasionally have an awkward url than need to put
           | the date in every time.
           | 
           | I've written ~2k posts and 1% ended up with suffixes like
           | this (ex: https://www.jefftk.com/p/nomic-report-ii). And most
           | of those were published in the same year as the original post
           | anyway.
        
           | kevin_thibedeau wrote:
           | You just made an SEO expert die of a heart attack. They're
           | paranoid about dateable content.
        
             | teddyh wrote:
             | You say that like it's a bad thing.
        
             | MrVandemar wrote:
             | If a date is something that helps categorise something in a
             | sane, indexable way, and SEO experts don't like them, they
             | can go and [obscenity] an [animal-noun] with a rusty
             | [ambiguous-from-context] and [illegal-act] and put it in
             | their pipe and smoke it.
             | 
             | Metadata _matters_.
        
         | garganzol wrote:
         | Interesting, but what is the purpose of %short-namespace%? To
         | me, it just adds the noise. Or maybe it's there to separate
         | e.g. articles vs. products?
        
           | franze wrote:
           | rule 3
           | 
           | manageable = measurable beeing able to seperate easily in
           | analytics tools apple from pears, products from article pages
           | from lispages.
           | 
           | while still having no dependencies in there
        
       | cbdumas wrote:
       | It's a shame magnet URIs never caught on outside BitTorrent
        
       | esperent wrote:
       | I'm surprised no one has created a service similar to archive.org
       | but for _redirects_. It could work as a browser extension and
       | would simply be a library of old broken links and their new
       | locations. Whenever you hit a 404 page it would query the service
       | for an alternative. People can submit links themselves.
       | 
       | I've brought up broken links in projects I contribute to on a few
       | occasions and it seems like people basically don't care if
       | there's even a tiny bit of extra work involved to fix it.
       | Complaining about this and expecting people to maintain links
       | themselves won't work.
        
         | snowwrestler wrote:
         | Archive.org does archive redirects. They are little green
         | bubbles instead of blue on the calendar view.
        
       ___________________________________________________________________
       (page generated 2023-03-04 23:01 UTC)