Everlind

Htaccess per vBulletin 4 (By www.webhostingmagazine.it)

Nov 12th, 2012
105
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # BEGIN Browser Caching/Headers
  2.  
  3. AddType text/css .css
  4. AddType text/richtext .rtf .rtx
  5. AddType image/svg+xml .svg .svgz
  6. AddType text/plain .txt
  7. AddType text/xsd .xsd
  8. AddType text/xsl .xsl
  9. AddType video/asf .asf .asx .wax .wmv .wmx
  10. AddType video/avi .avi
  11. AddType image/bmp .bmp
  12. AddType application/java .class
  13. AddType video/divx .divx
  14. AddType application/msword .doc .docx
  15. AddType application/x-msdownload .exe
  16. AddType image/gif .gif
  17. AddType application/x-gzip .gz .gzip
  18. AddType image/x-icon .ico
  19. AddType image/jpeg .jpg .jpeg .jpe
  20. AddType application/vnd.ms-access .mdb
  21. AddType audio/midi .mid .midi
  22. AddType video/quicktime .mov .qt
  23. AddType audio/mpeg .mp3 .m4a
  24. AddType video/mp4 .mp4 .m4v
  25. AddType video/mpeg .mpeg .mpg .mpe
  26. AddType application/vnd.ms-project .mpp
  27. AddType application/vnd.oasis.opendocument.database .odb
  28. AddType application/vnd.oasis.opendocument.chart .odc
  29. AddType application/vnd.oasis.opendocument.formula .odf
  30. AddType application/vnd.oasis.opendocument.graphics .odg
  31. AddType application/vnd.oasis.opendocument.presentation .odp
  32. AddType application/vnd.oasis.opendocument.spreadsheet .ods
  33. AddType application/vnd.oasis.opendocument.text .odt
  34. AddType audio/ogg .ogg
  35. AddType application/pdf .pdf
  36. AddType image/png .png
  37. AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
  38. AddType audio/x-realaudio .ra .ram
  39. AddType application/x-shockwave-flash .swf
  40. AddType application/x-tar .tar
  41. AddType image/tiff .tif .tiff
  42. AddType audio/wav .wav
  43. AddType audio/wma .wma
  44. AddType application/vnd.ms-write .wri
  45. AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
  46. AddType application/zip .zip
  47.  
  48. ExpiresActive On
  49. ExpiresByType text/css A2628000
  50. ExpiresByType text/richtext A3600
  51. ExpiresByType image/svg+xml A3600
  52. ExpiresByType text/plain A3600
  53. ExpiresByType text/xsd A3600
  54. ExpiresByType text/xsl A3600
  55. ExpiresByType video/asf A2628000
  56. ExpiresByType video/avi A2628000
  57. ExpiresByType image/bmp A2628000
  58. ExpiresByType application/java A2628000
  59. ExpiresByType video/divx A2628000
  60. ExpiresByType application/msword A2628000
  61. ExpiresByType application/x-msdownload A2628000
  62. ExpiresByType image/gif A2628000
  63. ExpiresByType application/x-gzip A2628000
  64. ExpiresByType image/x-icon A2628000
  65. ExpiresByType image/jpeg A2628000
  66. ExpiresByType application/vnd.ms-access A2628000
  67. ExpiresByType audio/midi A2628000
  68. ExpiresByType video/quicktime A2628000
  69. ExpiresByType audio/mpeg A2628000
  70. ExpiresByType video/mp4 A2628000
  71. ExpiresByType video/mpeg A2628000
  72. ExpiresByType application/vnd.ms-project A2628000
  73. ExpiresByType application/vnd.oasis.opendocument.database A2628000
  74. ExpiresByType application/vnd.oasis.opendocument.chart A2628000
  75. ExpiresByType application/vnd.oasis.opendocument.formula A2628000
  76. ExpiresByType application/vnd.oasis.opendocument.graphics A2628000
  77. ExpiresByType application/vnd.oasis.opendocument.presentation A2628000
  78. ExpiresByType application/vnd.oasis.opendocument.spreadsheet A2628000
  79. ExpiresByType application/vnd.oasis.opendocument.text A2628000
  80. ExpiresByType audio/ogg A2628000
  81. ExpiresByType application/pdf A2628000
  82. ExpiresByType image/png A2628000
  83. ExpiresByType application/vnd.ms-powerpoint A2628000
  84. ExpiresByType audio/x-realaudio A2628000
  85. ExpiresByType application/x-shockwave-flash A2628000
  86. ExpiresByType application/x-tar A2628000
  87. ExpiresByType image/tiff A2628000
  88. ExpiresByType audio/wav A2628000
  89. ExpiresByType audio/wma A2628000
  90. ExpiresByType application/vnd.ms-write A2628000
  91. ExpiresByType application/vnd.ms-excel A2628000
  92. ExpiresByType application/zip A2628000
  93.  
  94. BrowserMatch ^Mozilla/4 gzip-only-text/html
  95. BrowserMatch ^Mozilla/4.0[678] no-gzip
  96. BrowserMatch bMSIE !no-gzip !gzip-only-text/html
  97. BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
  98.  
  99. Header append Vary User-Agent env=!dont-vary
  100.  
  101. AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
  102.  
  103. <FilesMatch ".(css|CSS|)$">
  104.  
  105. Header set Pragma "public"
  106. Header append Cache-Control "public, must-revalidate, proxy-revalidate"
  107.  
  108. FileETag MTime Size
  109.  
  110. Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
  111.  
  112. <FilesMatch ".(rtf|rtx|svg|svgz|txt|xsd|xsl|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|)$">
  113.  
  114. Header set Pragma "public"
  115. Header append Cache-Control "public, must-revalidate, proxy-revalidate"
  116.  
  117. FileETag MTime Size
  118.  
  119. Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
  120.  
  121. <FilesMatch ".(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SWF|TAR|TIF|TIFF|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
  122.  
  123. Header set Pragma "public"
  124. Header append Cache-Control "public, must-revalidate, proxy-revalidate"
  125.  
  126. FileETag MTime Size
  127.  
  128. Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
  129.  
  130. # End Browser Caching/Headers
RAW Paste Data