# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
# BEGIN LiteSpeed
# Las directivas (líneas) entre «BEGIN LiteSpeed» y «END LiteSpeed» son
# generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress.
# Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas.
<IfModule Litespeed>
SetEnv noabort 1
</IfModule>
# END LiteSpeed

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# NUEVAS REGLAS DE SEGURIDAD (AÑADIR AL FINAL DEL ARCHIVO)
# -------------------------------------------------------------
# Deniega el acceso directo a cualquier archivo dentro de la carpeta includes/
<IfModule mod_rewrite.c>
    RewriteRule ^includes/.*$ - [R=404,L]
</IfModule>
# OTRA OPCIÓN PARA DENEGAR EL ACCESO A INCLUDES (Si la primera falla)
<FilesMatch "\.(php|inc|html|tpl)$">
    Order allow,deny
    Deny from all
</FilesMatch>
# -------------------------------------------------------------