# Acceso público al sitio
Require all granted
# Compatibilidad con versiones antiguas de Apache
Order allow,deny
Allow from all
# Archivo que se muestra al entrar al dominio
DirectoryIndex home.html index.html index.php
RewriteEngine On
# Redirigir /m/virtual.html a /m/virtuales.html
RewriteRule ^m/virtual\.html$ /m/virtuales.html [R=301,L]
# Si no existe el archivo solicitado, busca primero un archivo .html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ $1.html [L,QSA]
# Si tampoco existe el archivo .html, busca uno .php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^/]+)/?$ $1.php [L,QSA]
# Configuración de PHP generada por cPanel
# Mantiene ea-php74 como versión predeterminada de PHP
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml