Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IndexIgnore *
- RewriteEngine on
- #RewriteBase only requires in localhost alias
- RewriteBase /alias (edited)
- Options +FollowSymlinks
- RewriteCond %{REQUEST_FILENAME} !-f #Does not rewrite file
- RewriteCond %{REQUEST_FILENAME} !-d #Does not rewrite direcotry
- RewriteRule ^(.*)_(v|V)[0-9\.]+\.(css|png|gif|jpe?g|html?|swf|js)$ $1.$3
- AddDefaultCharset UTF-8
- # BEGIN Compress text files(use later)
- #<ifModule mod_deflate.c>
- # AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
- #</ifModule>
- # END Compress text files
- # BEGIN Expire headers
- <ifModule mod_expires.c>
- ExpiresActive On
- ExpiresDefault "access plus 1800 seconds"
- ExpiresByType image/x-icon "access plus 10 years"
- ExpiresByType image/jpeg "access plus 10 years"
- ExpiresByType image/jpg "access plus 10 years"
- ExpiresByType image/png "access plus 10 years"
- ExpiresByType image/gif "access plus 10 years"
- ExpiresByType application/x-shockwave-flash "access plus 10 years"
- ExpiresByType text/css "access plus 10 years"
- ExpiresByType text/javascript "access plus 10 years"
- ExpiresByType application/javascript "access plus 10 years"
- ExpiresByType application/x-javascript "access plus 10 years"
- ExpiresByType text/html "access plus 0 seconds"
- ExpiresByType application/xhtml+xml "access plus 1800 seconds"
- </ifModule>
- # END Expire headers
- # BEGIN Cache-Control Headers
- <ifModule mod_headers.c>
- <filesMatch "\.(x?html?|txt|xml|ico|jpe?g|png|gif|swf|css|js)$">
- Header set Cache-Control "public"
- </filesMatch>
- <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
- Header unset Cache-Control
- </filesMatch>
- </ifModule>
- # END Cache-Control Headers
- # BEGIN Turn ETags Off
- FileETag None
- # END Turn ETags Off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement