Advertisement
rhandom

Untitled

Jan 16th, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <IfModule mod_headers.c>
  2.     <FilesMatch "\.(eot|otf|tt[cf]|woff)$">
  3.         Header set Access-Control-Allow-Origin "*"
  4.     </FilesMatch>
  5. </IfModule>
  6. <IfModule pagespeed_module>
  7.     ModPagespeed on
  8.     ModPagespeedEnableFilters remove_comments,rewrite_javascript,rewrite_css,rewrite_images
  9.     ModPagespeedEnableFilters elide_attributes,defer_javascript,combine_css
  10.     ModPagespeedJpegRecompressionQuality -1
  11. </IfModule>
  12.  
  13. <IfModule mod_rewrite.c>
  14. RewriteEngine On
  15. RewriteBase /
  16. RewriteCond %{REQUEST_URI} ^/(failed_auth\.html).*$ [NC]
  17. RewriteRule . - [L]
  18. </IfModule>
  19.  
  20.  
  21. AuthType Basic
  22. AuthName "Enter login two times and then regular password"
  23. AuthUserFile /home/aarmitage/rocketpure.com/.htpasswd
  24. <Files wp-login.php>
  25. Require valid-user
  26. </Files>
  27.  
  28. # BEGIN Expire headers
  29. <IfModule mod_expires.c>
  30.   ExpiresActive On
  31.   ExpiresDefault "access plus 7200 seconds"
  32.   ExpiresByType image/x-icon "access plus 2592000 seconds"
  33.   ExpiresByType image/jpeg "access plus 2592000 seconds"
  34.   ExpiresByType image/png "access plus 2592000 seconds"
  35.   ExpiresByType image/gif "access plus 2592000 seconds"
  36.   ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
  37.  # ExpiresByType text/css "access plus 2592000 seconds"
  38.   ExpiresByType text/javascript "access plus 2592000 seconds"
  39.   ExpiresByType application/x-javascript "access plus 2592000 seconds"
  40.   ExpiresByType text/html "access plus 7200 seconds"
  41.   ExpiresByType application/xhtml+xml "access plus 7200 seconds"
  42. </IfModule>
  43. # END Expire headers
  44.  
  45. # BEGIN Cache-Control Headers
  46. <IfModule mod_headers.c>
  47.   <FilesMatch "\\.(ico|jpe?g|png|gif|swf|gz)$">
  48.     Header set Cache-Control "max-age=2592000, public"
  49.   </FilesMatch>
  50.   <FilesMatch "\\.(css)$">
  51.     Header set Cache-Control "max-age=2592000, public"
  52.   </FilesMatch>
  53.   <FilesMatch "\\.(js)$">
  54.     Header set Cache-Control "max-age=2592000, private"
  55.   </FilesMatch>
  56. <filesMatch "\\.(html|htm)$">
  57. Header set Cache-Control "max-age=7200, public"
  58. </filesMatch>
  59. # Disable caching for scripts and other dynamic files
  60. <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
  61. Header unset Cache-Control
  62. </FilesMatch>
  63. </IfModule>
  64.  
  65. # END Cache-Control Headers
  66.  
  67. # Gzip
  68.  
  69. <ifModule mod_gzip.c>
  70. mod_gzip_on Yes
  71. mod_gzip_dechunk Yes
  72. mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
  73. mod_gzip_item_include handler ^cgi-script$
  74. mod_gzip_item_include mime ^text/.*
  75. mod_gzip_item_include mime ^application/x-javascript.*
  76. mod_gzip_item_exclude mime ^image/.*
  77. mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  78. </ifModule>
  79.  
  80. #Deflate
  81.  
  82. <ifmodule mod_deflate.c>
  83. AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
  84. </ifmodule>
  85.  
  86. # BEGIN WPSuperCache
  87. # END WPSuperCache
  88.  
  89. # BEGIN W3TC Browser Cache
  90. <IfModule mod_deflate.c>
  91.     <IfModule mod_headers.c>
  92.         Header append Vary User-Agent env=!dont-vary
  93.     </IfModule>
  94.         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
  95.     <IfModule mod_mime.c>
  96.         # DEFLATE by extension
  97.         AddOutputFilter DEFLATE js css htm html xml
  98.     </IfModule>
  99. </IfModule>
  100. # END W3TC Browser Cache
  101. # BEGIN WordPress
  102. <IfModule mod_rewrite.c>
  103. RewriteEngine On
  104. RewriteBase /
  105. RewriteRule ^index\.php$ - [L]
  106. RewriteCond %{REQUEST_FILENAME} !-f
  107. RewriteCond %{REQUEST_FILENAME} !-d
  108. RewriteRule . /index.php [L]
  109. </IfModule>
  110.  
  111. # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement