# CRM .htaccess — Override parent directory handlers
# This ensures PHP executes correctly on XAMPP (local dev)

# Clear any inherited PHP handler from parent .htaccess (cPanel ea-php81)
<IfModule mime_module>
  RemoveHandler .php .php8 .phtml
  AddType application/x-httpd-php .php .phtml
</IfModule>

# Disable HTTPS redirect for local development
<IfModule mod_rewrite.c>
  RewriteEngine Off
</IfModule>

# Security: Deny access to sensitive directories
<FilesMatch "\.(sql|log|md)$">
  Order Allow,Deny
  Deny from all
</FilesMatch>

# Allow direct access to PHP files
Options -Indexes
DirectoryIndex index.php index.html
