Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_headers.c>
- <FilesMatch "\.(eot|otf|tt[cf]|woff)$">
- Header set Access-Control-Allow-Origin "*"
- </FilesMatch>
- </IfModule>
- <IfModule pagespeed_module>
- ModPagespeed on
- ModPagespeedEnableFilters remove_comments,rewrite_javascript,rewrite_css,rewrite_images
- ModPagespeedEnableFilters elide_attributes,defer_javascript,combine_css
- ModPagespeedJpegRecompressionQuality -1
- </IfModule>
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteCond %{REQUEST_URI} ^/(failed_auth\.html).*$ [NC]
- RewriteRule . - [L]
- </IfModule>
- AuthType Basic
- AuthName "Enter login two times and then regular password"
- AuthUserFile /home/aarmitage/rocketpure.com/.htpasswd
- <Files wp-login.php>
- Require valid-user
- </Files>
- # BEGIN Expire headers
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresDefault "access plus 7200 seconds"
- ExpiresByType image/x-icon "access plus 2592000 seconds"
- ExpiresByType image/jpeg "access plus 2592000 seconds"
- ExpiresByType image/png "access plus 2592000 seconds"
- ExpiresByType image/gif "access plus 2592000 seconds"
- ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
- # ExpiresByType text/css "access plus 2592000 seconds"
- ExpiresByType text/javascript "access plus 2592000 seconds"
- ExpiresByType application/x-javascript "access plus 2592000 seconds"
- ExpiresByType text/html "access plus 7200 seconds"
- ExpiresByType application/xhtml+xml "access plus 7200 seconds"
- </IfModule>
- # END Expire headers
- # BEGIN Cache-Control Headers
- <IfModule mod_headers.c>
- <FilesMatch "\\.(ico|jpe?g|png|gif|swf|gz)$">
- Header set Cache-Control "max-age=2592000, public"
- </FilesMatch>
- <FilesMatch "\\.(css)$">
- Header set Cache-Control "max-age=2592000, public"
- </FilesMatch>
- <FilesMatch "\\.(js)$">
- Header set Cache-Control "max-age=2592000, private"
- </FilesMatch>
- <filesMatch "\\.(html|htm)$">
- Header set Cache-Control "max-age=7200, public"
- </filesMatch>
- # Disable caching for scripts and other dynamic files
- <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
- Header unset Cache-Control
- </FilesMatch>
- </IfModule>
- # END Cache-Control Headers
- # Gzip
- <ifModule mod_gzip.c>
- mod_gzip_on Yes
- mod_gzip_dechunk Yes
- mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
- mod_gzip_item_include handler ^cgi-script$
- mod_gzip_item_include mime ^text/.*
- mod_gzip_item_include mime ^application/x-javascript.*
- mod_gzip_item_exclude mime ^image/.*
- mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
- </ifModule>
- #Deflate
- <ifmodule mod_deflate.c>
- AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
- </ifmodule>
- # BEGIN WPSuperCache
- # END WPSuperCache
- # BEGIN W3TC Browser Cache
- <IfModule mod_deflate.c>
- <IfModule mod_headers.c>
- Header append Vary User-Agent env=!dont-vary
- </IfModule>
- 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
- <IfModule mod_mime.c>
- # DEFLATE by extension
- AddOutputFilter DEFLATE js css htm html xml
- </IfModule>
- </IfModule>
- # END W3TC Browser Cache
- # BEGIN WordPress
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteRule ^index\.php$ - [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /index.php [L]
- </IfModule>
- # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement