[ create a new paste ] login | about

Link: http://codepad.org/5YqzxuCx    [ raw code | fork ]

C, pasted on May 27:
# 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
SetOutputFilter DEFLATE
AddOutputFilter DEFLATE text/plain
AddOutputFilter DEFLATE text/xml
AddOutputFilter DEFLATE application/xhtml+xml
AddOutputFilter DEFLATE text/css
AddOutputFilter DEFLATE application/xml
AddOutputFilter DEFLATE image/svg+xml
AddOutputFilter DEFLATE application/rss+xml
AddOutputFilter DEFLATE application/atom_xml
AddOutputFilter DEFLATE application/x-javascript
AddOutputFilter DEFLATE application/x-httpd-php
AddOutputFilter DEFLATE application/x-httpd-fastphp
AddOutputFilter DEFLATE application/x-httpd-eruby
AddOutputFilter DEFLATE text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch ^MSIE !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.iso$ no-gzip dont-vary
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg access 1 year
ExpiresByType image/jpeg access 1 year
ExpiresByType image/gif access 1 year
ExpiresByType image/png access 1 year
ExpiresByType text/css access 1 month
ExpiresByType text/html access 1 month
ExpiresByType application/pdf access 1 month
ExpiresByType text/x-javascript access 1 month
ExpiresByType application/x-shockwave-flash access 1 month
ExpiresByType image/x-icon access 1 year
ExpiresDefault access 1 month
</IfModule>
## EXPIRES CACHING ##
# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault access plus 5 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 604800 seconds
ExpiresByType text/javascript access plus 216000 seconds
ExpiresByType application/javascript access plus 216000 seconds
ExpiresByType application/x-javascript access plus 216000 seconds
ExpiresByType text/html access plus 600 seconds
ExpiresByType application/xhtml+xml access plus 600 seconds
</ifModule>
# END Expire headers
# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
<filesMatch .(ico|jpe?g|png|gif|swf)$”>
Header set Cache-Control public
</filesMatch>
<filesMatch .(css)$”>
Header set Cache-Control public
</filesMatch>
<filesMatch .(js)$”>
Header set Cache-Control private
</filesMatch>
<filesMatch .(x?html?|php)$”>
Header set Cache-Control private, must-revalidate
</filesMatch>
</ifModule>
# END Cache-Control Headers
# BEGIN Turn ETags Off
FileETag None
# END Turn ETags Off


Create a new paste based on this one


Comments: