<IfModule mod_rewrite.c>
  RewriteEngine On

  # Amethyst / Blossom bridge. Apache and LiteSpeed otherwise treat these
  # extensionless public endpoints as missing files and return HTTP 404.
  RewriteRule ^blossom(?:/(?:upload|media))?/?$ api/blossom.php [L,QSA,NC]

  # Internal state and original uploads are never public. Public media is
  # served through /live/media/ and its access-controlled PHP route instead.
  RewriteRule ^data(?:/|$) - [F,L,NC]
</IfModule>
