Title: [Plugin: WP Super Cache]  Mod Rewrite rules cannot be updated
Last modified: August 19, 2016

---

# [Plugin: WP Super Cache] Mod Rewrite rules cannot be updated

 *  [t-bag](https://wordpress.org/support/users/t-bag/)
 * (@t-bag)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-mod-rewrite-rules-cannot-be-updated/)
 * Under Mod Rewrite Rules, I get this message:
 * > You must have BEGIN and END markers in /home/user/public_html/blogdirectory/.
   > htaccess for the auto update to work. They look like this and surround the 
   > main WordPress mod_rewrite rules:
   >  # BEGIN WordPress RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   > d RewriteRule . /index.php [L] # END WordPress
   > Refresh this page when you have updated your .htaccess file.
 * I’m not sure what to do here, I edit the .htaccess file, and add this line of
   code in, but it doesn’t work: # BEGIN WordPress RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress

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

 *  [deserturchin](https://wordpress.org/support/users/deserturchin/)
 * (@deserturchin)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-mod-rewrite-rules-cannot-be-updated/#post-981447)
 * I have the same problem. Can someone please gives us some guidance?
 *  [pinkbeats](https://wordpress.org/support/users/pinkbeats/)
 * (@pinkbeats)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-mod-rewrite-rules-cannot-be-updated/#post-981522)
 * I have the same message on the plugin setting page. When I create an .htaccess
   file in the root directory for my blog it screws everything up. My blog is not
   in the root directory of my website though…
 *  [pinkbeats](https://wordpress.org/support/users/pinkbeats/)
 * (@pinkbeats)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-mod-rewrite-rules-cannot-be-updated/#post-981523)
 * OK have figured it out.
 * The settings page is misleading in that the code should be written thus:
 *     ```
       # BEGIN WordPress
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       # END WordPress
       ```
   
 * i.e. on new lines, if you copy and paste it from the settings page, it’s on one
   line and will not work. So I created an .htaccess file in the root directory 
   of my blog, inserted the above refreshed the page then it worked. Hope that helps.
 *  [ijoel67](https://wordpress.org/support/users/ijoel67/)
 * (@ijoel67)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-mod-rewrite-rules-cannot-be-updated/#post-981554)
 * I have the same issue today and it’s done well thank you pinkbeats
 *  [dalizo](https://wordpress.org/support/users/dalizo/)
 * (@dalizo)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-mod-rewrite-rules-cannot-be-updated/#post-981556)
 * I’m using WP 2.7 with WP-Supercache 0.9.3.1 installed.
 * I tried pinkbeats tips and always ends with Mod Rewrite rules cannot be updated’
   warning.
 * I’ve tried all of the this plugin suggestions wrote inside the plugin and always
   ends with Error 500 Internal Server Error.
 * Please be advise.

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

The topic ‘[Plugin: WP Super Cache] Mod Rewrite rules cannot be updated’ is closed
to new replies.

 * 5 replies
 * 5 participants
 * Last reply from: [dalizo](https://wordpress.org/support/users/dalizo/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-mod-rewrite-rules-cannot-be-updated/#post-981556)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
