<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    # Redirecionar www.admin.jctransportes.com.br para admin.jctransportes.com.br com HTTPS
    RewriteCond %{HTTP_HOST} ^www\.admin\.jctransportes\.com\.br$ [NC]
    RewriteRule ^(.*)$ https://admin.jctransportes.com.br/$1 [L,R=301]
    
    # Forçar HTTPS no subdomínio admin
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} ^admin\.jctransportes\.com\.br$ [NC]
    RewriteRule ^(.*)$ https://admin.jctransportes.com.br/$1 [L,R=301]
    
    # Redirecionar todas as requisições para o index.php do CodeIgniter
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php8_module>
   php_value upload_max_filesize 20M
   php_value post_max_size 4096M
   php_value memory_limit 4096M
   php_value max_execution_time 180
   php_value max_input_time 180
   php_flag display_errors Off
   php_value max_input_vars 1000
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php81"
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_value upload_max_filesize 20M
   php_value post_max_size 4096M
   php_value memory_limit 4096M
   php_value max_execution_time 180
   php_value max_input_time 180
   php_flag display_errors Off
   php_value max_input_vars 1000
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php81"
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

# php -- BEGIN cPanel-generated handler, do not edit
# Defina o pacote “ea-php81” como a linguagem padrão de programação “PHP”.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81___lsphp .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
