• Resolved aokijam

    (@aokijam)


    I encountered a problem using w3 Total Cache. I like to run chmod 777 for .htaccess but i can’t seem to find the file in my file manager.
    Below is the following message that I have received:

    You’ve enabled Browser Cache feature however the .htaccess file is not properly configured. Please run chmod 777 /home/(my username)/public_html/.htaccess, then try again.

    To manually modify these settings use the following code:
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_setenvif.c>
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
    </IfModule>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
    </IfModule>
    <FilesMatch “\.(css|js)$”>
    FileETag None
    <IfModule mod_headers.c>
    Header set X-Powered-By “W3 Total Cache/0.9.1.2”
    </IfModule>
    </FilesMatch>
    <FilesMatch “\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$”>
    FileETag None
    <IfModule mod_headers.c>
    Header set X-Powered-By “W3 Total Cache/0.9.1.2”
    </IfModule>
    </FilesMatch>
    <FilesMatch “\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$”>
    FileETag None
    <IfModule mod_headers.c>
    Header set X-Powered-By “W3 Total Cache/0.9.1.2”
    </IfModule>
    </FilesMatch>
    # END W3TC Browser Cache

Viewing 2 replies - 16 through 17 (of 17 total)
  • @040hosting,

    If you are on a shared host with suPHP you should never get the 777 notice unless there are configuration problems with the server because the plugin will be able to write to the file.

    This is the same notification system WordPress uses when it can’t write to a file like when you change your permalink settings are use the theme editor.

    Also, I suggest you actually put the command in the error message, so if it has to be done manually, it’s a simple copy and paste.

    ie: instead of “copy /path/htaccess to /some/path”
    use this instead: “cp /path/to/.hatccess /target/path/of/file”

    @chovy, The error message fixes and the install instructions all work copy and paste directly in to an ssh command prompt.

    Thanks @c3mdigital

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘.htaccess file is not properly configured for W3 Total Cache’ is closed to new replies.