News for hackers. Stuff that matters.
Re:Ask HN: Cheapest/easiest way to host a static site? by zck on Saturday March 27, 2021 @02:58AM (#26600519)
In the .htaccess:

  RewriteEngine on
  RewriteCond ${REQUEST_FILENAME} !-D
  RewriteRule "^((?:.*/)*[^/.]+)$" "$1.html" [NC]
Re:Ask HN: Cheapest/easiest way to host a static site? by hunter2_ on Sunday March 28, 2021 @12:29PM (#26611643)
Any reason not to just use

  Options MultiViews
instead?
Re:Ask HN: Cheapest/easiest way to host a static site? by zck on Sunday March 28, 2021 @12:43PM (#26611764)
Mainly because I did not know that existed. I'll have to test it before thinking about switching it out. I wonder if there's some sort of unit test suite for .htaccess configurations -- big changes like this could definitely break something, and my config works for me now.

It does seem like it might be more magic than I prefer in programming, though.

Re:Ask HN: Cheapest/easiest way to host a static site? by johnx123-up on Saturday March 27, 2021 @05:15AM (#26601056)
Thank you