thunderrabbit

~/public/.htaccess after being hacked

Sep 18th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. # BEGIN W3TC Browser Cache
  2. <IfModule mod_deflate.c>
  3. <IfModule mod_headers.c>
  4. Header append Vary User-Agent env=!dont-vary
  5. </IfModule>
  6. AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
  7. <IfModule mod_mime.c>
  8. # DEFLATE by extension
  9. AddOutputFilter DEFLATE js css htm html xml
  10. </IfModule>
  11. </IfModule>
  12. # END W3TC Browser Cache
  13. # BEGIN W3TC Page Cache core
  14. <IfModule mod_rewrite.c>
  15. RewriteEngine On
  16. RewriteBase /
  17. RewriteCond %{HTTP:Accept-Encoding} gzip
  18. RewriteRule .* - [E=W3TC_ENC:_gzip]
  19. RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
  20. RewriteRule .* - [E=W3TC_PREVIEW:_preview]
  21. RewriteCond %{REQUEST_METHOD} !=POST
  22. RewriteCond %{QUERY_STRING} =""
  23. RewriteCond %{REQUEST_URI} \/$
  24. RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
  25. RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
  26. RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
  27. </IfModule>
  28. # END W3TC Page Cache core
Add Comment
Please, Sign In to add comment