Resolve redirection to index_gzip.html issue

In some cases your visitors might be redirected directly to the cache file URL on your site. The cache file URLs look like this:

There could be three reasons for this related to WP Rocket.

Redirect from HTTP to HTTPS

If you have SSL enabled for your entire site, you will need to make sure that all links pointing to the HTTP version of your site will be automatically  redirected to the HTTPS version

www/non-www Redirection

This problem can appear when your site is accessible via both addresses and

To resolve it, follow our  Fixing non-www Redirection Knowledge Base article.

In both these cases, old configuration and cache files related to the unused version of the domain should be removed.

Remove rewrite rules from .htaccess 

Another potential issue could be related to Rewrite Rules we add in .htaccess file. To remove these, install the following helper plugin, activate it and then disable/reactivate WP Rocket afterwards so that the modifications of the .htaccess file are taken into account:

📥   Download (.zip):  WP Rocket | Remove Rewrite Rules
Developers: You can find the code for this plugin on GitHub.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.