# Single-page app: any URL under /app/ that is not a real file opens index.html (so /app/orders/ORD-... works on refresh).
# Works on Apache / cPanel. Nginx: see README.
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /app/
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /app/index.html [L]
</IfModule>
<IfModule mod_headers.c>
  <FilesMatch "(index\.html|config\.js)$">
    Header set Cache-Control "no-cache"
  </FilesMatch>
</IfModule>
