RewriteEngine On
RewriteBase /
# Forzar HTTPS en Hostinger
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Si el archivo o carpeta existe físicamente, servirlo directo
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Para todas las demás rutas (como /negocio/slug o /panel), enviar a index.html
RewriteRule ^ index.html [L]
Header set X-Frame-Options "SAMEORIGIN"
Header set X-Content-Type-Options "nosniff"
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/json