Advertisement
Guest User

Untitled

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