.htaccess file is not properly configured for W3 Total Cache
-
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
- The topic ‘.htaccess file is not properly configured for W3 Total Cache’ is closed to new replies.