标准网站htaccess设置优化

时间: 2011-04-13 / 分类: 个人日记 / 浏览次数: 2,809 views / 0个评论 发表评论
RewriteEngine on
RewriteCond %{http_host} ^fengwenjia.com [NC]
RewriteRule ^(.*)$ http://www.fengwenjia.com/$1 [L,R=301]

ExpiresActive On 
ExpiresDefault A604800
ExpiresByType text/css M259200
ExpiresByType application/x-javascript M1200
ExpiresByType text/html M600
ExpiresByType image/gif "access plus 2 month"
ExpiresByType image/jpeg "access plus 2 month"
ExpiresByType image/png "access plus 2 month"
ExpiresByType image/x-icon "access plus 2 month"
ExpiresByType application/x-shockwave-flash A2592000


AddOutputFilter DEFLATE html xml php js css

FileETag none

               
                
                
                

发表评论

您的昵称 *

您的邮箱 * (绝对保密)

您的网站

😉 😐 😡 😈 🙂 😯 🙁 🙄 😛 😳 😮 mrgreen.png 😆 💡 😀 👿 😥 😎 ➡ 😕 ❓ ❗