If you are wondering what is broken: the error does not mean WordPress is down. It means WP Fastest Cache cannot use Apache’s mod_rewrite rules to serve cached HTML files.
In practice, your site still loads, but you are missing the fastest cache method. The plugin added rules to .htaccess, tried to test them, and the server said “nope”. Below is how to track down why and fix it.
WP Fastest Cache shows “Mod_Rewrite is not working” and caching is not kicking in. How do I fix this on my server so the plugin can actually cache pages?
mod_rewrite is an Apache feature that reads rules from .htaccess and rewrites URLs. WordPress uses it for pretty permalinks. WP Fastest Cache uses it to serve static HTML files directly from disk instead of running PHP on every request.
When you see “Mod_Rewrite is not working” in WP Fastest Cache, it means:
Most of the time, it comes down to one of these:
.htaccess is ignored on your plan.mod_rewrite module is not enabled..htaccess exists but Apache is not allowed to obey it (AllowOverride None)..htaccess is not writable, so the plugin never saved its rules correctly.Before touching the plugin, make sure your server can handle basic URL rewriting.
Now check what happens:
.htaccess or the plugin’s rules. Go to Step 2.mod_rewrite until the server is fixed. Skip to Step 4 and talk to your host.WP Fastest Cache’s mod_rewrite mode is designed for Apache and LiteSpeed. Nginx does not read .htaccess at all.
If you are not sure what you are running:
If you are on Nginx only: the plugin cannot apply mod_rewrite rules by itself. You will either need host level rules or a different cache method. Keep that in mind when you reach Step 5.
.htaccess exists and is writableWP Fastest Cache stores its rewrite rules in the same .htaccess file WordPress uses for permalinks.
.htaccess in your site rootwp-config.php. This is your WordPress root..htaccess.If you do not see it, enable “show hidden files” in your file manager. If it still does not exist:
.htaccess with its default rules..htaccess permissionsWP Fastest Cache needs to be able to update this file.
.htaccess.If permissions are too strict (for example 444), the plugin cannot add or update its rules and you will keep seeing the error.
Now that .htaccess is in place and writable, let the plugin try again.
After saving, refresh the settings page. If the “Mod_Rewrite is not working” notice disappears, you are done with the core issue. Skip to Verification.
.htaccessIf the notice is still there, open .htaccess again in a text editor.
/wp-content/cache/all/.If there is no WP Fastest Cache block at all, the plugin still cannot write to .htaccess. In that case:
.htaccess and the site root folder..htaccess edits.At this point you may have:
.htaccess file.This usually means Apache is not applying those rules, even though basic rewriting works.
Some other plugin or the host may have placed rules above the WP Fastest Cache block that “catch” requests first.
In .htaccess look for:
If you see multiple cache plugins writing rules, pick one caching plugin to keep, disable the others, then clean up their blocks in .htaccess. After that, resave WP Fastest Cache settings.
If you are comfortable editing server config you can do this yourself, but on most shared hosting you will need support to check it.
Open a ticket with wording like this:
“I am using the WordPress plugin WP Fastest Cache, which relies on Apache’s mod_rewrite rules in my site’s .htaccess file. WordPress permalinks work, but the plugin reports ‘Mod_Rewrite is not working’. Can you confirm:
- That mod_rewrite is enabled for my virtual host, and
- That AllowOverride All (or at least AllowOverride FileInfo Options) is set so .htaccess rewrite rules can run, and
- That no server level rule is stripping or overriding the WP Fastest Cache rules?”
If your host says mod_rewrite is disabled or .htaccess overrides are blocked for your plan, WP Fastest Cache cannot use its fastest method on that server. You will need their help to change that, or to use a different cache strategy.
Some environments do not use Apache style .htaccess at all, or only read it after extra configuration.
mod_rewrite is not available..htaccess automatically until the service is restarted..htaccess rules for security reasons.In these cases:
mod_rewrite mode on your plan.If you are still staring at “Mod_Rewrite is not working” after the checks above, I will need a bit more context to help you narrow it down.
Scroll down, click Continue Chat, and send me:
.htaccess file from the WordPress root.You are in good shape if:
/wp-content/cache/all/ fills up with cached HTML files after a few visits.Hit Continue Chat below and I will walk you through your .htaccess, server type, and plugin settings until we find the exact reason mod_rewrite is failing.
Scroll down to the contact form below. Enter your name, email, and WordPress needs. Atiba will get back to you as soon as possible.
WP Assistant is a free tool created by Atiba Software, a WordPress design and development company located in Nashville, TN. If you need more personalized WordPress assistance let us know, and we’ll get back to you ASAP!