RewriteEngine on

#remove www para evitar erros na federação
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule (.*) http://%1/$1 [R=307,L]

RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^lmssambatech.com.br$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.lmssambatech.com.br$
RewriteCond %{REQUEST_URI} !simplesaml/
RewriteCond %{REQUEST_URI} !simplesamlphp/
RewriteCond %{REQUEST_URI} !phpmailer/
RewriteCond %{REQUEST_URI} !bayer/
RewriteCond %{REQUEST_URI} !unimed/
RewriteCond %{REQUEST_URI} !public_scorm/
RewriteCond %{REQUEST_URI} !MatriculaAutomatizadaCursoIQA/
RewriteRule (.*) /lmssambatech/web/$1 [L]

# Controle de acesso e origem
Header set Access-Control-Allow-Origin "*"

# 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 php5_module>
   php_flag asp_tags Off
   php_flag display_errors Off
   php_value max_execution_time 3000000
   php_value max_input_time 3000000
   php_value max_input_vars 2000
   php_value memory_limit 7096M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php56"
   php_value upload_max_filesize 3000M
   php_value post_max_size 3000M
   php_value mysql.connect_timeout 0
   php_value default_socket_timeout 300000
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag asp_tags Off
   php_flag display_errors Off
   php_value max_execution_time 3000000
   php_value max_input_time 3000000
   php_value max_input_vars 2000
   php_value memory_limit 7096M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php56"
   php_value upload_max_filesize 3000M
   php_value post_max_size 3000M
   php_value mysql.connect_timeout 0
   php_value default_socket_timeout 300000
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

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