sgnl02/vegamap-mty-ci/master/.htaccess - Htaccess File

sgnl02/vegamap-mty-ci/master/.htaccess

RewriteEngine on
RewriteCond $1 !^(index.php|img|js|css|assets|robots.txt|css|img|js)
RewriteRule ^(.*)$ index.php/$1 [L]

Header unset Pragma
Header unset ETag
FileETag None

<FilesMatch ".(htm|html|css|js)$">
AddDefaultCharset UTF-8
</FilesMatch>

<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>

<FilesMatch ".(ico)$">
#Cache for 1 month
#Specified in seconds

Header set Cache-Control "max-age=2419200, public, must-revalidate"
</FilesMatch>

<FilesMatch ".(jpg|jpeg|png|gif)$">

ExpiresActive On
ExpiresDefault "access plus 1 month"
</FilesMatch>

<FilesMatch ".(js|css|html|htm|xml|txt|xsl)$">
#Cache for 2 weeks
Header set Cache-Control "max-age=1209600, must-revalidate"
</FilesMatch>

On Github License

Files

Download PDF of Htaccess file
Pragma

Comments

Apache