Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. htaccess /
  2. # compress text, HTML, JavaScript, CSS, and XML
  3. AddOutputFilterByType DEFLATE text/plain
  4. AddOutputFilterByType DEFLATE text/html
  5. AddOutputFilterByType DEFLATE text/xml
  6. AddOutputFilterByType DEFLATE text/css
  7. AddOutputFilterByType DEFLATE application/xml
  8. AddOutputFilterByType DEFLATE application/xhtml+xml
  9. AddOutputFilterByType DEFLATE application/rss+xml
  10. AddOutputFilterByType DEFLATE application/javascript
  11. AddOutputFilterByType DEFLATE application/x-javascript
  12.  
  13. # remove browser bugs
  14. BrowserMatch ^Mozilla/4 gzip-only-text/html
  15. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  16. BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  17. Header append Vary User-Agent
  18.  
  19. <IfModule mod_expires.c>
  20. ExpiresActive On
  21. ExpiresByType image/gif "access plus 1 month"
  22. ExpiresByType image/jpeg "access plus 1 month"
  23. ExpiresByType image/png "access plus 1 month"
  24. ExpiresByType text/css "access plus 1 week"
  25. ExpiresByType text/javascript "access plus 1 week"
  26. ExpiresByType application/javascript "access plus 1 week"
  27. ExpiresByType application/x-javascript "access plus 1 week"
  28. ExpiresByType image/x-icon "access plus 1 year"
  29. </IfModule>
  30.  
  31. htaccess /blog
  32.  
  33. # BEGIN WPSuperCache
  34. # END WPSuperCache
  35.  
  36. BrowserMatchNoCase Baiduspider bad_bot
  37. BrowserMatchNoCase Yandex bad_bot
  38. Deny from env=bad_bot
  39.  
  40. deny from 23.20.0.0/14
  41. deny from 50.112.0.0/16
  42. deny from 184.169.128.0/17
  43. deny from 176.34.64.0/18
  44. deny from 176.34.0.0/18
  45. deny from 177.71.128.0/17
  46.  
  47. AddType text/xml .xml
  48. AddType video/mp4 .mp4 .m4v
  49. AddType video/mpeg .mpeg .mpg
  50. AddType video/quicktime .mov
  51. AddType video/ogg .ogv
  52. AddType video/webm .webm
  53. AddType audio/mp4 .m4a .m4b .m4r
  54. AddType audio/mpeg .mp3
  55. AddType audio/playlist .m3u
  56. AddType audio/x-scpls .pls
  57. AddType audio/ogg .ogg
  58. AddType audio/wav .wav
  59.  
  60. # BEGIN W3TC Browser Cache
  61. <IfModule mod_deflate.c>
  62. <IfModule mod_headers.c>
  63. Header append Vary User-Agent env=!dont-vary
  64. </IfModule>
  65. <IfModule mod_filter.c>
  66. 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
  67. <IfModule mod_mime.c>
  68. # DEFLATE by extension
  69. AddOutputFilter DEFLATE js css htm html xml
  70. </IfModule>
  71. </IfModule>
  72. </IfModule>
  73. # END W3TC Browser Cache
  74. # BEGIN WordPress
  75. <IfModule mod_rewrite.c>
  76. RewriteEngine On
  77. RewriteBase /blog/
  78. RewriteRule ^index\.php$ - [L]
  79. RewriteCond %{REQUEST_FILENAME} !-f
  80. RewriteCond %{REQUEST_FILENAME} !-d
  81. RewriteRule . /blog/index.php [L]
  82. </IfModule>
  83.  
  84. # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement