<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/css application/json application/javascript application/vnd.ms-fontobject application/font-ttf application/font-woff application/font-otf image/svg+xml
</IfModule>
<IfModule mod_rewrite.c>

    # only with this, GET parameters will be functional
    Options +FollowSymlinks
    Options -MultiViews

    # everything should be utf-8
    AddCharset utf-8 .html .php .css .js

    RewriteEngine On

    # Apache strips Authorization headers not in basic auth format, we use Authorization Bearer token, enable pass-through of this header
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

    RewriteCond %{HTTP:CONTEXT_HOOK} ^(.*)
    RewriteRule .* - [e=HTTP_CONTEXT_HOOK:%1]

    #
    # push everything into one file
    #

    # switches between test.php and default.php - use display.php for integration
    RewriteRule ^(.*)$ index.php [NC,QSA,L]

</IfModule>