RewriteEngine On

RewriteBase /

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !/gla-adminer
#RewriteCond %{REQUEST_URI} !/page/social-register-google
RewriteRule ^(.*)$ index.php?u=$1 [QSA,L]

ErrorDocument 404 https://www.%{HTTP_HOST}/404

<FilesMatch "\.(ico|jpe?g|png|css|js)$">
	Header set Cache-Control "max-age=1296000, public"
</FilesMatch>

<filesMatch "\.(html|htm)$">
	Header set Cache-Control "max-age=7200, public"
</filesMatch>

<IfModule php7_module>
   php_flag display_errors Off
   php_value max_execution_time 360
   php_value max_input_time 120
   php_value max_input_vars 1500
   php_value memory_limit 256M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php70"
   php_value upload_max_filesize 20M
   php_value date.timezone "Europe/Paris"
   php_value post_max_size 24M
   php_flag zlib.output_compression On
 
</IfModule>
