# Polakis Console — web root rules (Apache / LiteSpeed).
Options -Indexes
DirectoryIndex index.php

<IfModule mod_headers.c>
  Header always set X-Robots-Tag "noindex, nofollow, noarchive, nosnippet"
</IfModule>

# Only index.php, the two assets and robots.txt are meant to be fetched.
<FilesMatch "^\.">
  Require all denied
</FilesMatch>
<FilesMatch "\.(php)$">
  Require all denied
</FilesMatch>
<Files "index.php">
  Require all granted
</Files>

# Force HTTPS.
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTPS} off
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
