How do you insert plugin instructions into the .htaccess?
-
I didn’t know if this should go in plugins or here. It has to do both with maybe not knowing how to insert plugin instructions into the htaccess or it has to do with the total cache plugin.
When i try to install it, on the menu it says:
Browser Cache feature is not operational. Your .htaccess rules could not be modified. Please verify /home/domain/public_html/.htaccess has the following rules: # 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.3" </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.3" </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.3" </IfModule> </FilesMatch> # END W3TC Browser Cache
I’m wondering where this rule goes in an htaccess that looks like this:
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L] # END WordPress
Before inside or after the wordpress rules. If it still doesn’t work, and i’ve tried the three, I’m wondering what on earth do i do to make total cache work, as it’s only working partially at the mo, or so it says and it keeps complaining that this hasn’t been inserted. The above requirement, btw, is different from the requirement in the installation manual, which says i should create a cache folder and inside that an htaccess file, which to me makes precious little sense.
- The topic ‘How do you insert plugin instructions into the .htaccess?’ is closed to new replies.