RewriteEngine On

# Si la solicitud no es un directorio, archivo o enlace simbólico existente, redirigir a public
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ public/$1 [L,QSA]

# Redireccionar de www a non-www
RewriteCond %{HTTP_HOST} ^www\.promotoraimpulsa\.com [NC]
RewriteRule ^(.*)$ https://isotech.mx/escuela/constantino/$1 [L,R=301]

# 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
