.htaccess 500 internal server error when set ExpiresActive -
in .htaccess
have code:
<filesmatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|txt|html|x-html|php|css|xml|js|woff|ttf|svg|eot)(\.gz)?$"> expiresactive on header set expires "sun, 27 may 2012 00:00:00 gmt" header unset etag fileetag none </filesmatch>
it seems work on servers, not on 1 of websites. 500 internal server error. there wrong in config, or have contact host?
ensure have these apache modules enabled , loaded:
- expiresactive -- mod_expires
- header -- mod_headers
try instead (it use directives if corresponding module present):
<filesmatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|txt|html|x-html|php|css|xml|js|woff|ttf|svg|eot)(\.gz)?$"> <ifmodule mod_expires.c> expiresactive on </ifmodule> <ifmodule mod_headers.c> header set expires "sun, 27 may 2012 00:00:00 gmt" header unset etag </ifmodule> fileetag none </filesmatch>
Comments
Post a Comment