# The online shop (3.24.0). The POS in its own folder keeps its own .htaccess.
DirectoryIndex index.php index.html
Options -Indexes -MultiViews
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^sitemap\.xml$ sitemap.php [L]
  RewriteRule ^robots\.txt$ robots.php [L]
  RewriteRule ^llms\.txt$ llms.php [L]
  RewriteRule ^feed\.xml$ feed.php [L]
</IfModule>
# The start-up and settings files are included by the pages, never opened directly.
<FilesMatch "^(_boot|shop-config)\.php$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>
<FilesMatch "\.(md|sql|log|bak)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>
<IfModule mod_headers.c>
  Header setifempty X-Content-Type-Options "nosniff"
  Header setifempty Referrer-Policy "strict-origin-when-cross-origin"
  Header setifempty X-Frame-Options "SAMEORIGIN"
  # 3.28.0: the stylesheet and script carry their version in the address
  # (shop.css?v=3.28.0), so a browser may keep them for a year; a new
  # version is a new address.
  <FilesMatch "\.(css|js)$">
    Header set Cache-Control "public, max-age=31536000, immutable"
  </FilesMatch>
</IfModule>
# 3.28.0: everything that is text travels compressed (about a quarter of the size).
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/javascript text/javascript application/json application/xml image/svg+xml
</IfModule>
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType text/css "access plus 1 year"
  ExpiresByType application/javascript "access plus 1 year"
  ExpiresByType text/javascript "access plus 1 year"
</IfModule>
