# DizzCall AI - Root .htaccess for cPanel
# Place this in /public_html/dizzcall-ai/

<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Redirect all requests to public directory
    RewriteCond %{REQUEST_URI} !^/dizzcall-ai/public/
    RewriteRule ^(.*)$ /dizzcall-ai/public/$1 [L,R=301]
</IfModule>

# Security headers
<IfModule mod_headers.c>
    Header always set X-Content-Type-Options nosniff
    Header always set X-Frame-Options DENY
    Header always set X-XSS-Protection "1; mode=block"
</IfModule>

# Prevent access to sensitive files
<Files ".env">
    Order allow,deny
    Deny from all
</Files>

<Files "composer.json">
    Order allow,deny
    Deny from all
</Files>

<Files "composer.lock">
    Order allow,deny
    Deny from all
</Files>

<Files "artisan">
    Order allow,deny
    Deny from all
</Files>











