Advertisement
Guest User

Untitled

a guest
Oct 24th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. # BEGIN WP-HUMMINGBIRD-GZIP
  2. <IfModule mod_deflate.c>
  3. SetOutputFilter DEFLATE
  4. <IfModule mod_setenvif.c>
  5. <IfModule mod_headers.c>
  6. SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
  7. RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
  8. </IfModule>
  9. </IfModule>
  10. <IfModule mod_filter.c>
  11. AddOutputFilterByType DEFLATE "application/atom+xml" \
  12. "application/javascript" \
  13. "application/json" \
  14. "application/ld+json" \
  15. "application/manifest+json" \
  16. "application/rdf+xml" \
  17. "application/rss+xml" \
  18. "application/schema+json" \
  19. "application/vnd.geo+json" \
  20. "application/vnd.ms-fontobject" \
  21. "application/x-font-ttf" \
  22. "application/x-font-opentype" \
  23. "application/x-font-truetype" \
  24. "application/x-javascript" \
  25. "application/x-web-app-manifest+json" \
  26. "application/xhtml+xml" \
  27. "application/xml" \
  28. "font/eot" \
  29. "font/opentype" \
  30. "font/otf" \
  31. "image/bmp" \
  32. "image/svg+xml" \
  33. "image/vnd.microsoft.icon" \
  34. "image/x-icon" \
  35. "text/cache-manifest" \
  36. "text/css" \
  37. "text/html" \
  38. "text/javascript" \
  39. "text/plain" \
  40. "text/vcard" \
  41. "text/vnd.rim.location.xloc" \
  42. "text/vtt" \
  43. "text/x-component" \
  44. "text/x-cross-domain-policy" \
  45. "text/xml"
  46.  
  47. </IfModule>
  48. <IfModule mod_mime.c>
  49. AddEncoding gzip svgz
  50. </IfModule>
  51. </IfModule>
  52. # END WP-HUMMINGBIRD-GZIPP
  53. # BEGIN WordPress
  54. <IfModule mod_rewrite.c>
  55. RewriteEngine On
  56. RewriteBase /
  57. RewriteCond %{SERVER_PORT} 80
  58. RewriteCond %{HTTP_HOST} ^(www\.)?\.com
  59. RewriteRule ^(.*)$ https://www..com/$1 [R,L]
  60. RewriteRule ^index\.php$ - [L]
  61. RewriteCond %{REQUEST_FILENAME} !-f
  62. RewriteCond %{REQUEST_FILENAME} !-d
  63. RewriteRule . /index.php [L]
  64. </IfModule>
  65. # END LiteSpeed
  66. # BEGIN WP-HUMMINGBIRD-CACHING
  67. <IfModule mod_expires.c>
  68. ExpiresActive On
  69. ExpiresDefault A0
  70.  
  71. <FilesMatch "\.(txt|xml|js)$">
  72. ExpiresDefault A3600
  73. </FilesMatch>
  74.  
  75. <FilesMatch "\.(css)$">
  76. ExpiresDefault A3600
  77. </FilesMatch>
  78.  
  79. <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
  80. ExpiresDefault A3600
  81. </FilesMatch>
  82.  
  83. <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
  84. ExpiresDefault A3600
  85. </FilesMatch>
  86. </IfModule>
  87.  
  88. <IfModule mod_headers.c>
  89. <FilesMatch "\.(txt|xml|js)$">
  90. Header set Cache-Control "max-age=3600"
  91. </FilesMatch>
  92.  
  93. <FilesMatch "\.(css)$">
  94. Header set Cache-Control "max-age=3600"
  95. </FilesMatch>
  96.  
  97. <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
  98. Header set Cache-Control "max-age=3600"
  99. </FilesMatch>
  100.  
  101. <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
  102. Header set Cache-Control "max-age=3600"
  103. </FilesMatch>
  104. </IfModule>
  105. # END WP-HUMMINGBIRD-CACHING
  106. <ifModule mod_gzip.c>
  107. mod_gzip_on Yes
  108. mod_gzip_dechunk Yes
  109. mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  110. mod_gzip_item_include mime ^application/x-javascript.*
  111. mod_gzip_item_include mime ^text/.*
  112. mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  113. mod_gzip_item_exclude mime ^image/.*
  114. mod_gzip_item_include handler ^cgi-script$
  115. </ifModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement