日期:2014-05-16 浏览次数:20862 次
RewriteEngine on RewriteCond %{http_host} ^AAA.com [NC] RewriteRule ^(.*)$ http://www.AAA.com/$1 [L,R=301]
RewriteEngine on RewriteCond %{http_host} ^ www.AAA.com [NC] RewriteRule ^(.*)$ http://AAA.com/$1 [L,R=301]
ErrorDocument 401 /error/401.php ErrorDocument 403 /error/403.php ErrorDocument 404 /error/404.php ErrorDocument 500 /error/500.php
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/javacript AddOutputFilterByType DEFLATE application/x-javascript
ExpiresActive on //开启缓存 ExpiresByType text/css "access 1 month"//css文件缓存1个月 ExpiresByType text/plain "access 2 days"//纯文本内容缓存2天 ExpiresByType text/html "access 2 days"//html文件缓存2天 ExpiresByType application/javascript "access 1 month"//JS文件缓存1个月 ExpiresByType image/jpeg "access 1 month"//jpeg图片缓存1个月 ExpiresByType image/x-icon "access 1 month"//icon缓存1个月 ExpiresByType image/gif "access 1 month"//gif图片缓存一个月 ExpiresByType image/png "access 1 month"//png图片缓存一个月 ExpiresByType image/ico "access 1 month"//ico缓存1个月 ExpiresByType application/pdf "access 1 month"//pdf文件缓存一个月 ExpiresByType application/x-shockwave-flash "access 1 month"//flash缓存一个月 ExpiresDefault "access 1 month"// 默认(未提及的可缓存文件)缓存1个月
Header unset Cache-Control
deny from 000.000.000.000
allow from 000.000.000.000
deny from all
RewriteBase / RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?aqee.net/.*$ [NC] RewriteRule .(gif|jpg|swf|flv|png)$ /feed/ [R=302,L]