• Resolved Rapforthemoment

    (@rapforthemoment)


    Hey guys. Trying to install WP Total Cache and this error message pops up: “Edit file /home/xxxx/public_html/.htaccess and add the following rules above the WordPress directives:
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>

    I found the file I am supposed to add this information in through my cPanel, but do not know where to add the info in the code. Help?

    Thank you in advance for all your effort. Tried checking out the WP Total Cache forums but no replies and no good.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Rapforthemoment

    (@rapforthemoment)

    Correction. This is the code it wants me to add:
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    </IfModule>
    # END W3TC Browser Cache

    Thread Starter Rapforthemoment

    (@rapforthemoment)

    Never mind guys! Got it. Just pasted the code up above everything but below the title of the access file.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WP Total Cache Error (add above WordPress directives)’ is closed to new replies.