deny from all # leverage browser caching by sg-optimizer <ifmodule mod_expires.c>expiresactive on expiresdefault "access plus 6 months" # css expiresbytype text/css "access plus 1 year" # html components (htcs) expiresbytype text/x-component "access plus 2 months" # html expiresbytype text/html "access plus 6 months" # javascript expiresbytype application/javascript "access plus 1 year" expiresbytype application/x-javascript "access plus 1 year" # manifest files expiresbytype application/x-web-app-manifest+json "access plus 0 seconds" expiresbytype text/cache-manifest "access plus 0 seconds" # media expiresbytype audio/ogg "access plus 1 year" expiresbytype image/gif "access plus 1 year" expiresbytype image/jpg "access plus 1 year" expiresbytype image/jpeg "access plus 1 year" expiresbytype image/png "access plus 1 year" expiresbytype image/svg "access plus 1 year" expiresbytype image/svg+xml "access plus 1 year" expiresbytype video/mp4 "access plus 1 year" expiresbytype video/ogg "access plus 1 year" expiresbytype video/webm "access plus 1 year" expiresbytype image/x-icon "access plus 1 year" expiresbytype application/pdf "access plus 1 year" expiresbytype application/x-shockwave-flash "access plus 1 year" # web feeds expiresbytype application/atom+xml "access plus 1 hour" expiresbytype application/rss+xml "access plus 1 hour" # web fonts expiresbytype application/font-woff "access plus 1 year" expiresbytype application/font-woff2 "access plus 1 year" expiresbytype application/vnd.ms-fontobject "access plus 1 year" expiresbytype application/x-font-ttf "access plus 1 year" expiresbytype font/opentype "access plus 1 year" </ifmodule># end lbc # begin wordpress <ifmodule mod_rewrite.c>rewriteengine on rewritebase / rewriterule ^index\.php$ - [L] rewritecond %{REQUEST_FILENAME}!-f rewritecond %{REQUEST_FILENAME}!-d RewriteRule . /index.php [L] </IfModule># END WordPress <IfModule mod_deflate.c>AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule>