开发者

how to add mod expire condition in htaccess?

开发者 https://www.devze.com 2023-02-24 06:13 出处:网络
How to add mode expire co开发者_Go百科ndition in htaccessYou will need to make sure that you have the mod_expires module enabled, and then use the following:

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

精彩评论

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