Title: Cache breaks with mod_rewrite
Last modified: August 20, 2016

---

# Cache breaks with mod_rewrite

 *  Resolved [Tzunamii](https://wordpress.org/support/users/tzunamii/)
 * (@tzunamii)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/cache-breaks-with-mod_rewrite/)
 * Hello,
 * I have been using WP Super Cache successfully for some time now, but now I need
   some professional advice, please.
 * I’m using a basic GEOIP redirect using .htaccess and mod_rewrite to block certain
   countries out of necessity.
 * The site works well when the rewrite is in place and the rewrite itself works
   as intended. However, WP Super Cache breaks when it tries to preload. Instead
   of pushing the posts/pages into the WP Super Cache it loads them into WP Cache,
   according to the plugin itself.
 *     ```
       RewriteEngine on
       RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|RU)$
       RewriteRule ^(.*)$ http://blocked.example.com/ [R=301,L]
       ```
   
 * Regards,
 * /Tzu.
 * Ps.
 * The debug textfile says ‘_Supercache caching disabled. Only using wp-cache. Non
   empty GET request._‘ when it tries to preload.

The topic ‘Cache breaks with mod_rewrite’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Tzunamii](https://wordpress.org/support/users/tzunamii/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/cache-breaks-with-mod_rewrite/)
 * Status: resolved