• Resolved Sarah Berg

    (@sarah-berg)


    I was trying to enable browser caching on my website, so I entered the following code in my .htaccess file

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType text/html "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
    </IfModule>
    ## EXPIRES CACHING ##

    When I updated it using fireftp, it caused the entire site to go blank. I then tried to replace it with the backup .htaccess I had created, and the problem remained. What am I doing wrong? Why does the backup version not work when it was working previously?
    This is a link to my website

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htacess made website crash. Backup doesn't fix it.’ is closed to new replies.