RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\\.php|css|js|images|robots\\.txt)
RewriteRule ^(.*)$ index.php?$1 [L]

<IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
        # SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\\s*,?\\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
        # RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
    </IfModule>
</IfModule>

<IfModule mod_filter.c>
    # AddOutputFilterByType DEFLATE application/atom+xml \
    #                               application/javascript \
    #                               application/json \
    #                               application/ld+json \
    #                               application/rss+xml \
    #                               application/vnd.ms-fontobject \
    #                               application/x-font-ttf \
    #                               application/x-web-app-manifest+json \
    #                               application/xhtml+xml \
    #                               application/xml \
    #                               font/opentype \
    #                               image/svg+xml \
    #                               image/x-icon \
    #                               text/css \
    #                               text/html \
    #                               text/plain \
    #                               text/x-component \
    #                               text/xml
</IfModule>

# Turn on Expires and set default to 0

# ExpiresActive On

# ExpiresDefault A0


<FilesMatch "\\.(html|htm|js|css|php)">
   FileETag None
   Header unset ETag
   Header set Cache-Control "max-age=31536000, no-cache, no-store, must-revalidate"
   Header set Pragma "no-cache"
   Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</FilesMatch>
