Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. # BEGIN LSCACHE
  2. ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
  3. <IfModule LiteSpeed>
  4. RewriteEngine on
  5. CacheLookup on
  6. RewriteRule .* - [E=Cache-Control:no-autoflush]
  7. RewriteRule ^min/\w+\.(css|js) - [E=cache-control:no-vary]
  8.  
  9. ### marker CACHE RESOURCE start ###
  10. RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
  11. ### marker CACHE RESOURCE end ###
  12.  
  13. ### marker FAVICON start ###
  14. RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
  15. ### marker FAVICON end ###
  16.  
  17. </IfModule>
  18. ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
  19. # END LSCACHE
  20. # BEGIN NON_LSCACHE
  21. ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
  22. ### marker MINIFY start ###
  23. <IfModule mod_rewrite.c>
  24. RewriteEngine on
  25. RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\w+)\.(css|js)$
  26. RewriteCond %1/wp-content/cache/$2/$1.$2 -f
  27. RewriteRule min/(\w+)\.(css|js) wp-content/cache/$2/$1.$2 [L]
  28. </IfModule>
  29. ### marker MINIFY end ###
  30.  
  31. ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
  32. # END NON_LSCACHE
  33.  
  34. # BEGIN WordPress
  35. <IfModule mod_rewrite.c>
  36. RewriteEngine On
  37. RewriteBase /
  38. RewriteRule ^index\.php$ - [L]
  39. RewriteCond %{REQUEST_FILENAME} !-f
  40. RewriteCond %{REQUEST_FILENAME} !-d
  41. RewriteRule . /index.php [L]
  42. </IfModule>
  43.  
  44. # END WordPress
  45. # BEGIN wtfdivi
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. # END wtfdivi
  57.  
  58. ## EXPIRES CACHING ##
  59. <IfModule mod_expires.c>
  60. ExpiresActive On
  61. ExpiresByType image/jpg "access 1 year"
  62. ExpiresByType image/jpeg "access 1 year"
  63. ExpiresByType image/gif "access 1 year"
  64. ExpiresByType image/png "access 1 year"
  65. ExpiresByType text/css "access 1 month"
  66. ExpiresByType application/pdf "access 1 month"
  67. ExpiresByType application/javascript "access 1 month"
  68. ExpiresByType application/x-javascript "access 1 month"
  69. ExpiresByType application/x-shockwave-flash "access 1 month"
  70. ExpiresByType image/x-icon "access 1 year"
  71. ExpiresDefault "access 2 days"
  72. </IfModule>
  73. ## END EXPIRES CACHING ##
  74.  
  75. ## GZIP COMPRESSION ##
  76. <IfModule mod_deflate.c>
  77. AddOutputFilterByType DEFLATE text/plain
  78. AddOutputFilterByType DEFLATE text/html
  79. AddOutputFilterByType DEFLATE text/xml
  80. AddOutputFilterByType DEFLATE text/css
  81. AddOutputFilterByType DEFLATE application/xml
  82. AddOutputFilterByType DEFLATE application/xhtml+xml
  83. AddOutputFilterByType DEFLATE application/rss+xml
  84. AddOutputFilterByType DEFLATE application/javascript
  85. AddOutputFilterByType DEFLATE application/x-javascript
  86. </IfModule>
  87. ## END GZIP COMPRESSION ##
  88.  
  89. ## ENABLE KEEP-ALIVE ##
  90. <IfModule mod_headers.c>
  91. Header set Connection keep-alive
  92. </IfModule>
  93. ## END ENABLE KEEP-ALIVE ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement