# Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working

RewriteEngine On

RewriteRule ^(.*)/+$ $1 [L,R=302] #Remove End Trailing Slash | For Production Use [L,R=301]
RewriteRule ^([a-zA-Z0-9-_]+)(?:/{1})?$ index.php?p=$1&%{QUERY_STRING} [L,NC]

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://*subdominio*.*dominio*/$1 [R,L]

## CHACHEO POR TIPO ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 month"
ExpiresByType image/jpeg "access 1 month"
ExpiresByType image/gif "access 1 month"
ExpiresByType image/png "access 1 month"
ExpiresByType text/css "access 1 month"
ExpiresByType text/js "access 1 month"
ExpiresByType text/woff "access 1 month"
ExpiresByType application/pdf "access 1 month"
 
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType text/js "access 1 month"
ExpiresByType text/javascript "access 1 month"
ExpiresByType application/javascript "access 1 month"
 
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 month"
ExpiresDefault "access 2 days"
</IfModule>

<Files *.css>
SetOutputFilter DEFLATE
</Files>
<Files *.js>
SetOutputFilter DEFLATE
</Files>


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