Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # BEGIN WordPress
- # BEGIN GZIP COMPRESSION BY TOOLBOX
- <IfModule mod_deflate.c>
- #add content typing
- AddType application/x-gzip .gz .tgz
- AddEncoding x-gzip .gz .tgz
- # Insert filters
- 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
- AddOutputFilterByType DEFLATE application/x-httpd-php
- AddOutputFilterByType DEFLATE application/x-httpd-fastphp
- AddOutputFilterByType DEFLATE image/svg+xml
- # Drop problematic browsers
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4.0[678] no-gzip
- BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
- </IfModule>
- # END GZIP COMPRESSION
- # BEGIN EXPIRY COMPRESSION BY TOOLBOX
- <IfModule mod_expires.c>
- # Enable expirations
- ExpiresActive On
- # Default directive
- ExpiresDefault "access plus 1 month"
- # My favicon
- ExpiresByType image/x-icon "access plus 1 year"
- # Images
- ExpiresByType image/gif "access plus 1 month"
- ExpiresByType image/png "access plus 1 month"
- ExpiresByType image/jpg "access plus 1 month"
- ExpiresByType image/jpeg "access plus 1 month"
- # CSS
- ExpiresByType text/css "access plus 1 month"
- # Javascript
- ExpiresByType application/javascript "access plus 1 year"
- ExpiresByType text/javascript "access plus 1 year"
- ExpiresByType application/x-javascript "access plus 1 year"
- #ExpiresByType text/html "access plus 600 seconds"
- #ExpiresByType application/xhtml+xml "access plus 600 seconds"
- #Header set Cache-Control “max-age=2692000, public”
- #Header set Cache-Control “max-age=600, private, must-revalidate”
- #Header unset ETag
- #Header unset Last-Modified
- </IfModule>
- # END EXPIRY COMPRESSION
- <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
Add Comment
Please, Sign In to add comment