AddDefaultCharset UTF-8

php_value session.cookie_httponly 1
php_value session.cookie_secure 1

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

<IfModule mod_headers.c>
   Header onsuccess edit Set-Cookie ^(.*) "$1; SameSite=Strict; HttpOnly; Secure"
</IfModule>
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
          Options +FollowSymLinks -MultiViews -Indexes
    </IfModule>
    RewriteEngine on
    #Switch to single sign-on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
#Set caching on image files
<ifModule mod_expires.c>
    ExpiresActive On
    AddType image/x-icon .ico
    ExpiresByType image/x-icon "access plus 1 day"
    ExpiresByType image/svg "access plus 1 hour"
    ExpiresByType application/x-font-ttf "access plus 1 year"
    ExpiresByType application/x-font-woff "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/webp "access plus 1 year"
</ifModule>