Home page content displayed on all pages

Problem

When caching is enabled, clicking on any internal page link displays the content from the home/front page. The URL in the address bar will show the correct page URL, but the content is from the front page.

Cause

Index.php is not processed correctly, related to a conflict with htaccess rules. Normally, if you visit example.org/index.php, you should be redirected to example.org. A conflict with rewrite rules can prevent this from happening, and then this problem will occur.

The full technical details are available here.

Solution

In WP Rocket go to the Advanced Rules tab and enter the following in Never Cache URL(s):
/index.php

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