.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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -