Options +FollowSymLinks
Options -Indexes
# -----------------------------------------------------
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
# -----------------------------------------------------
AddDefaultCharset "Content-Type: text/html; charset=UTF-8"
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
Header unset Last-Modified
## EXPIRES CACHING ##
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
## EXPIRES CACHING ##
# -----------------------------------------------------
#RewriteCond %{REQUEST_FILENAME} (config\.php)
#RewriteRule ^(.*) /index.php/$1
#RewriteCond %{REQUEST_METHOD} !^(GET|POST)
#RewriteRule .* - [F,L]
#RewriteCond %{REQUEST_FILENAME} !-s
#RewriteRule ^(.*)\/+$ $1 [R=301,L]
# ----------------------------------------------------- enable cross-origin resource sharing
Header always append X-Frame-Options SAMEORIGIN
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "origin, x-requested-with, content-type"
#Header set Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"