# Desactivar la opci¨®n de seguimiento de directorios
Options -Indexes

# Habilitar la reescritura de URL
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Redirigir todo el tr¨˘fico HTTP a HTTPS
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    # Si existe un archivo o directorio real, ignora la regla de reescritura
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # Redirigir todas las solicitudes al controlador frontal (por ejemplo, index.php)
    RewriteRule ^ index.php [L]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Este dominio hereda el paquete â€śPHPâ€ť.
# php -- END cPanel-generated handler, do not edit
