# Advanced Driving Instructors website (Apache / Namecheap)
Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
RewriteEngine On
# Uncomment the next two lines after SSL is active, to force https:
# RewriteCond %{HTTPS} !=on
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^(app|data)(/|$) - [F,L]
RewriteRule (^|/)\. - [F,L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^assets/ - [L]
RewriteRule ^ index.php [L,QSA]
</IfModule>

<FilesMatch "\.(sqlite|key|md|log|zip)$">
  Require all denied
</FilesMatch>

<IfModule mod_headers.c>
  <FilesMatch "\.(css|js|svg)$">
    Header set Cache-Control "public, max-age=604800"
  </FilesMatch>
</IfModule>
