Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2011
7,120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # BEGIN W3TC Browser Cache
  2. <IfModule mod_deflate.c>
  3. <IfModule mod_setenvif.c>
  4. BrowserMatch ^Mozilla/4 gzip-only-text/html
  5. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  6. BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  7. BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
  8. </IfModule>
  9. <IfModule mod_headers.c>
  10. Header append Vary User-Agent env=!dont-vary
  11. </IfModule>
  12. <IfModule mod_filter.c>
  13. AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
  14. </IfModule>
  15. </IfModule>
  16. <FilesMatch "\.(css|js|htc|CSS|JS|HTC)$">
  17. FileETag None
  18. <IfModule mod_headers.c>
  19. Header set X-Powered-By "W3 Total Cache/0.9.2.4"
  20. </IfModule>
  21. </FilesMatch>
  22. <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
  23. FileETag None
  24. <IfModule mod_headers.c>
  25. Header set X-Powered-By "W3 Total Cache/0.9.2.4"
  26. </IfModule>
  27. </FilesMatch>
  28. <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
  29. FileETag None
  30. <IfModule mod_headers.c>
  31. Header set X-Powered-By "W3 Total Cache/0.9.2.4"
  32. </IfModule>
  33. </FilesMatch>
  34. # END W3TC Browser Cache
  35. # BEGIN W3TC Page Cache core
  36. <IfModule mod_rewrite.c>
  37. RewriteEngine On
  38. RewriteBase /
  39. RewriteRule ^(.*\/)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 [L]
  40. RewriteCond %{HTTPS} =on
  41. RewriteRule .* - [E=W3TC_SSL:_ssl]
  42. RewriteCond %{SERVER_PORT} =443
  43. RewriteRule .* - [E=W3TC_SSL:_ssl]
  44. RewriteCond %{HTTP:Accept-Encoding} gzip
  45. RewriteRule .* - [E=W3TC_ENC:_gzip]
  46. RewriteCond %{REQUEST_METHOD} !=POST
  47. RewriteCond %{QUERY_STRING} =""
  48. RewriteCond %{HTTP_HOST} =yourwebsite.com
  49. RewriteCond %{REQUEST_URI} \/$ [OR]
  50. RewriteCond %{REQUEST_URI} (sitemap(_index)?\.xml(\.gz)?|[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?) [NC]
  51. RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php) [NC,OR]
  52. RewriteCond %{REQUEST_URI} (wp\-comments\-popup\.php|wp\-links\-opml\.php|wp\-locations\.php) [NC]
  53. RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|wordpress_\[a\-f0\-9\]\+|wordpress_logged_in) [NC]
  54. RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
  55. RewriteCond "%{DOCUMENT_ROOT}/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" -f
  56. RewriteRule .* "/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" [L]
  57. RewriteCond %{REQUEST_METHOD} !=POST
  58. RewriteCond %{QUERY_STRING} =""
  59. RewriteCond %{HTTP_HOST} =yourwebsite.com
  60. RewriteCond %{REQUEST_URI} \/$ [OR]
  61. RewriteCond %{REQUEST_URI} (sitemap(_index)?\.xml(\.gz)?|[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?) [NC]
  62. RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php) [NC,OR]
  63. RewriteCond %{REQUEST_URI} (wp\-comments\-popup\.php|wp\-links\-opml\.php|wp\-locations\.php) [NC]
  64. RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|wordpress_\[a\-f0\-9\]\+|wordpress_logged_in) [NC]
  65. RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
  66. RewriteCond "%{DOCUMENT_ROOT}/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.xml%{ENV:W3TC_ENC}" -f
  67. RewriteRule .* "/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.xml%{ENV:W3TC_ENC}" [L]
  68. </IfModule>
  69. # END W3TC Page Cache core
  70. # BEGIN WordPress
  71. <IfModule mod_rewrite.c>
  72. RewriteEngine On
  73. RewriteBase /
  74. RewriteRule ^index\.php$ - [L]
  75. RewriteCond %{REQUEST_FILENAME} !-f
  76. RewriteCond %{REQUEST_FILENAME} !-d
  77. RewriteRule . /index.php [L]
  78. </IfModule>
  79.  
  80. # END WordPress
Advertisement
RAW Paste Data Copied
Advertisement