Skip to content

Instantly share code, notes, and snippets.

@hendrasyp
Last active March 19, 2019 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hendrasyp/a19ab381e4dfe07bb7c9f00227fc8494 to your computer and use it in GitHub Desktop.
Save hendrasyp/a19ab381e4dfe07bb7c9f00227fc8494 to your computer and use it in GitHub Desktop.
Optimasi Website Menggunakan htaccess
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
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
AddType application/woff .woff
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
<FilesMatch "\.(?i:php)$">
ForceType application/octet-stream
AddType application/x-httpd-php .php
SetHandler application/x-httpd-php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php index.html
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment