One of our sites (a friend’s website) has the following code in the .htaccess file:
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
ExpiresActive On
Ends after 2 weeks
<filesMatch “.(gif|png|jpg|jpeg|txt)$”>
Header set Cache-Control “max-age=1209600”
ends after 1 day
<filesMatch “.(css|js)$”>
Header set Cache-Control “max-age=604800”
It works well in cpanel. Recently we have just migrate it to virtualmin, when i open the site, it says 500 error, it works if i removed this block of text in the .htaccess file. Could anyone help how to modify it to make it work in virtualmin server?
Thanks!