RewriteEngine On
# ✅ Redirect to HTTPS (no typo, correct domain)
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://lightyellow-mule-306456.hostingersite.com%{REQUEST_URI} [L,R=301]
# ✅ Handle Laravel front controller
RewriteRule ^$ public/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ public/index.php [L]
# Disable directory listing
Options -Indexes
# Block hidden files and folders (.env, .git, etc.)
Order allow,deny
Deny from all
# Block specific sensitive files
Order allow,deny
Deny from all