# ============================================================
# Maree-CareFlow - Setup Wizard Directory .htaccess
# Version: 1.2.20 | Date: 2026-06-08
#
# Allows ONLY install.php to be accessed in this directory.
# All other files (templates, logs, temporary files) are
# denied. Uses both Apache 2.4 and 2.2 compatible syntax.
# ============================================================

# Deny access to all files in this directory by default
<FilesMatch ".*">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
  </IfModule>
</FilesMatch>

# Allow ONLY install.php to be served
<Files "install.php">
  <IfModule mod_authz_core.c>
    Require all granted
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Allow from all
  </IfModule>
</Files>

# Block directory listing
Options -Indexes
