<Files*>Options-indexes</Files><IfmoduleMOD_HEADERS.C><FilesMatch"\. (ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf) $">HeaderSet Cache-control"max-age=2592000, public"</FilesMatch><FilesMatch"\. (xml|txt) $">HeaderSet Cache-control"max-age=604800, public"</FilesMatch><FilesMatch"\. (html|htm|php|shtml) $">HeaderSet Cache-control"max-age=86400"</FilesMatch></Ifmodule><Ifmodulemod_rewrite.c>Options+followsymlinks Rewriteengine on Rewritecond%{request_filename}!-f Rewritecond%{request_uri}! (.*)/$# Rewritecond%{request_uri}!\.html$ Rewriterule^ (. *) $/$1/[l,r=301] #RewriteCond%{http_host}!^ (m.zbphp.com|localhost|ptwww|192.168.) [NC]#RewriteRule ^ (. *) $ http://m.zbphp.com/$1 [l,r=301] Rewritecond%{request_filename}!-d Rewritecond%{request_filename}!-f Rewriterule^ (. *) $ index.php/$1 [qsa,pt,l]</Ifmodule>
thinkphp 3.2 Apache htaccess open Cache Max-age (2014-11-7 revision)