Redirection to /wp-content/cache/all/index.html Problem

by admin

If there is a 301 redirection rule in htaccess, apache may redirect the url to http://yourdomain.com/wp-content/cache/all/index.html.

You need to add following condition before 301 RewriteRule to fix the problem.

RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)
Example:

This is a redirection sample.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

You should paste the line into your 301 redirection rule as below.

RewriteEngine On
RewriteCond %{HTTPS} off
#---HERE YOU MUST ADD---
RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)
#---HERE YOU MUST ADD---
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Don’t update the rule of WP Fastest Cache

You need to add the line into your redirection rule, not into the rules of WP Fastest Cache.

Related articles

How to Move the Menu Item Under the Setting Menu
How to Move the Menu Item Under the Setting Menu

The menu item of WP Fastest Cache is added to the top level menu by default so you can reach…

How to Redirect All HTTP to HTTPS .htaccess
How to Redirect All HTTP to HTTPS .htaccess

If you have installed an SSL certificate on your website, the website may not be available via a secure HTTPS…

Placeholder Image
How to Clear All The Cache After Update Post

Follow the link: http://www.wpfastestcache.com/tutorial/to-clear-cache-after-update/

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.