- Forums
- PHP
- ExpiresByType : Expiresactive On - 500 Internal Server Error
i follow your instructions regarding how to enable the caching of my server, i put this on my .htaccess file but when i load the page, i get a 500 error from apache. [1289], Last Updated: Sat May 18, 2024
lousdb
Sat Jan 01, 2011
1 Comments
1583 Visits
i follow your instructions regarding how to enable the caching of my server, i put this on my .htaccess file but when i load the page, i get a 500 error from apache.
this is my htaccess code:
ExpiresActive On
ExpiresByType image/ico A15552000
ExpiresByType image/gif A31556926
ExpiresByType image/png A31556926
ExpiresByType image/jpg A31556926
ExpiresByType image/jpeg A31556926
ExpiresByType text/javascript A31556926
ExpiresByType text/css A31556926
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=31556926, public"
</FilesMatch>
if not,
look for this line:
#LoadModule expires_module modules/mod_expires.so
change it to:
LoadModule expires_module modules/mod_expires.so
then restart your apache server