Show HN: sus – static site based URL shortener
github.com
github.com
Because every original URL must be a valid file name, it does limit you compared to the full rewrite capabilities of Apache or Nginx, but that's the price you pay for a fully-static site. (I thought vaguely about writing some JS you could put in a 404.html to snoop the intended URL and do a lookup in a table to redirect to, but never got around to figuring out the details.)
I've found using txtd.io as a URL-shortener a much simpler approach.
Or lightsaber, which does the exact same thing, but with Ruby (and allows some wildcards): https://github.com/captn3m0/lightsaber
Others may disagree, though. :D