开发者

how to add mod expire condition in htaccess?

How to add mode expire co开发者_Go百科ndition in htaccess


You will need to make sure that you have the mod_expires module enabled, and then use the following:

ExpiresActive on
ExpiresDefault "access plus 1 month"

You can add expires times based upon content type as well, see the Apache docs for more info: http://httpd.apache.org/docs/current/mod/mod_expires.html


I assume you mean mod_expire.

Yes you can add these directives to .htaccess. So long as you have AllowOverride set

http://httpd.apache.org/docs/2.0/mod/mod_expires.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜