Guest User

Untitled

a guest
Jan 23rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. # BEGIN WordPress
  2.  
  3. # BEGIN GZIP COMPRESSION BY TOOLBOX
  4. <IfModule mod_deflate.c>
  5. #add content typing
  6. AddType application/x-gzip .gz .tgz
  7. AddEncoding x-gzip .gz .tgz
  8. # Insert filters
  9. AddOutputFilterByType DEFLATE text/plain
  10. AddOutputFilterByType DEFLATE text/html
  11. AddOutputFilterByType DEFLATE text/xml
  12. AddOutputFilterByType DEFLATE text/css
  13. AddOutputFilterByType DEFLATE application/xml
  14. AddOutputFilterByType DEFLATE application/xhtml+xml
  15. AddOutputFilterByType DEFLATE application/rss+xml
  16. AddOutputFilterByType DEFLATE application/javascript
  17. AddOutputFilterByType DEFLATE application/x-javascript
  18. AddOutputFilterByType DEFLATE application/x-httpd-php
  19. AddOutputFilterByType DEFLATE application/x-httpd-fastphp
  20. AddOutputFilterByType DEFLATE image/svg+xml
  21. # Drop problematic browsers
  22. BrowserMatch ^Mozilla/4 gzip-only-text/html
  23. BrowserMatch ^Mozilla/4.0[678] no-gzip
  24. BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
  25. </IfModule>
  26. # END GZIP COMPRESSION
  27. # BEGIN EXPIRY COMPRESSION BY TOOLBOX
  28. <IfModule mod_expires.c>
  29. # Enable expirations
  30. ExpiresActive On
  31. # Default directive
  32. ExpiresDefault "access plus 1 month"
  33. # My favicon
  34. ExpiresByType image/x-icon "access plus 1 year"
  35. # Images
  36. ExpiresByType image/gif "access plus 1 month"
  37. ExpiresByType image/png "access plus 1 month"
  38. ExpiresByType image/jpg "access plus 1 month"
  39. ExpiresByType image/jpeg "access plus 1 month"
  40. # CSS
  41. ExpiresByType text/css "access plus 1 month"
  42. # Javascript
  43. ExpiresByType application/javascript "access plus 1 year"
  44. ExpiresByType text/javascript "access plus 1 year"
  45. ExpiresByType application/x-javascript "access plus 1 year"
  46. #ExpiresByType text/html "access plus 600 seconds"
  47. #ExpiresByType application/xhtml+xml "access plus 600 seconds"
  48.  
  49. #Header set Cache-Control “max-age=2692000, public”
  50. #Header set Cache-Control “max-age=600, private, must-revalidate”
  51. #Header unset ETag
  52. #Header unset Last-Modified
  53. </IfModule>
  54. # END EXPIRY COMPRESSION
  55. <IfModule mod_rewrite.c>
  56. RewriteEngine On
  57. RewriteBase /
  58. RewriteRule ^index.php$ - [L]
  59. RewriteCond %{REQUEST_FILENAME} !-f
  60. RewriteCond %{REQUEST_FILENAME} !-d
  61. RewriteRule . /index.php [L]
  62. </IfModule>
  63.  
  64. # END WordPress
Add Comment
Please, Sign In to add comment