Title: Htaccess mistake plugin
Last modified: August 21, 2016

---

# Htaccess mistake plugin

 *  [Joost23](https://wordpress.org/support/users/joost23/)
 * (@joost23)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/htaccess-mistake-plugin/)
 * The W3 Total Cache plugin add some rules to the .htaccess in the root of the 
   WordPress site. This generates a internal server error. When i delete the .htaccess
   file and regerate it in the permalink section and empty the cache, the site is
   be working.
 * But a day later, the plugin adds again rules to to .htaccess and we get the same
   problem. So i look into the htaccess file and locate the problem here;
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
               Header append Cache-Control "public"
                Header unset Set-Cookie
                Header set X-Powered-By "W3 Total Cache/0.9.4"
           </IfModule>
       </FilesMatch>
       ```
   
 * You can see, the is something missing in the file. The if module and Filesmatch
   begin.
 * Full .htaccess file [http://pastebin.com/TmU3uS0X](http://pastebin.com/TmU3uS0X)
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

The topic ‘Htaccess mistake plugin’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Joost23](https://wordpress.org/support/users/joost23/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/htaccess-mistake-plugin/)
 * Status: not resolved