ambuda icon indicating copy to clipboard operation
ambuda copied to clipboard

Set up redirects when links change

Open shreevatsa opened this issue 2 years ago • 2 comments

This is low priority, but on at least a couple of occasions I have visited pages from my browser history (URL autocompletion) that have turned out be 404s:

  • https://ambuda.org/dictionaries/ (it's now at https://ambuda.org/tools/dictionaries/)
  • https://ambuda.org/proofing/complete-guide/ (it's now at https://ambuda.org/proofing/help/complete-guide)

It may be nice to

  • set up redirects (HTTP status 301 Moved Permanently) from earlier URLs to newer ones.
  • have some monitoring for pages on which users are getting 404 errors, so that we can address them.

See also: Cool URIs don't change (Tim Berners-Lee, 1998) :-)

shreevatsa avatar Oct 02 '22 04:10 shreevatsa

Agreed that cool URIs don't change! I've tried to be more careful about these as Ambuda has grown out of its experimental/prototype phase, but thanks for flagging the ones I've missed.

  1. Where do you think the right place for these redirects is -- at the nginx layer or at the application layer? I think the nginx config makes sense.
  2. Do you think we should apply this retroactively or just apply it going forward? I tend to favor the latter, but I can see arguments either way.

akprasad avatar Oct 02 '22 04:10 akprasad

Either nginx config or app config will work — I have a slight preference for it being in the app because (AFAIK) the nginx config is not part of the repo, and having it in the app will also work locally, but I guess that may change so either should be fine.

Enough to do this going forward I think.

shreevatsa avatar Oct 02 '22 05:10 shreevatsa