<code>========================
缓存
ExpiresActive On
ExpiresByType image/gif A86400
ExpiresByType image/jpg A86400
ExpiresByType image/png A86400
ExpiresByType text/javascript A86400
ExpiresByType application/x-javascript A86400
===================
重定向
RewriteCond %{http_host} ^xiaopiao.net [NC]
RewriteRule ^(.*)$ http://www.xiaopiao.net/$1 [L,R=301]

==========================
只允许某个IP访问
deny from all

allow from 58.245.64.0

================================
只允许某个文件指定IP访问
<Files member.php>
deny from all
allow from 58.245.64
allow from 58.245.65
</Files>
================================
RewriteCond $1 !^(city/shanghai)/
RewriteCond %{HTTP_HOST} ^shanghai.xiaopiao.net [NC]
RewriteRule ^(.*)$ /city/shanghai/$1 [L]</code>