Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- htaccess /
- # compress text, HTML, JavaScript, CSS, and XML
- AddOutputFilterByType DEFLATE text/plain
- AddOutputFilterByType DEFLATE text/html
- AddOutputFilterByType DEFLATE text/xml
- AddOutputFilterByType DEFLATE text/css
- AddOutputFilterByType DEFLATE application/xml
- AddOutputFilterByType DEFLATE application/xhtml+xml
- AddOutputFilterByType DEFLATE application/rss+xml
- AddOutputFilterByType DEFLATE application/javascript
- AddOutputFilterByType DEFLATE application/x-javascript
- # remove browser bugs
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4\.0[678] no-gzip
- BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
- Header append Vary User-Agent
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType image/gif "access plus 1 month"
- ExpiresByType image/jpeg "access plus 1 month"
- ExpiresByType image/png "access plus 1 month"
- ExpiresByType text/css "access plus 1 week"
- ExpiresByType text/javascript "access plus 1 week"
- ExpiresByType application/javascript "access plus 1 week"
- ExpiresByType application/x-javascript "access plus 1 week"
- ExpiresByType image/x-icon "access plus 1 year"
- </IfModule>
- htaccess /blog
- # BEGIN WPSuperCache
- # END WPSuperCache
- BrowserMatchNoCase Baiduspider bad_bot
- BrowserMatchNoCase Yandex bad_bot
- Deny from env=bad_bot
- deny from 23.20.0.0/14
- deny from 50.112.0.0/16
- deny from 184.169.128.0/17
- deny from 176.34.64.0/18
- deny from 176.34.0.0/18
- deny from 177.71.128.0/17
- AddType text/xml .xml
- AddType video/mp4 .mp4 .m4v
- AddType video/mpeg .mpeg .mpg
- AddType video/quicktime .mov
- AddType video/ogg .ogv
- AddType video/webm .webm
- AddType audio/mp4 .m4a .m4b .m4r
- AddType audio/mpeg .mp3
- AddType audio/playlist .m3u
- AddType audio/x-scpls .pls
- AddType audio/ogg .ogg
- AddType audio/wav .wav
- # BEGIN W3TC Browser Cache
- <IfModule mod_deflate.c>
- <IfModule mod_headers.c>
- Header append Vary User-Agent env=!dont-vary
- </IfModule>
- <IfModule mod_filter.c>
- 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>
- </IfModule>
- # END W3TC Browser Cache
- # BEGIN WordPress
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /blog/
- RewriteRule ^index\.php$ - [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /blog/index.php [L]
- </IfModule>
- # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement