All Pages Have Home Page Content – WordPress Caching Issue

Header image for the blog post including the post title

While migrating a new client website over to our premium WordPress hosting this week, I ran into a problem that I don’t think I’ve ever seen before: every page that you would navigate to had the same content as the home page.

What’s weird is that the URLs seemed to be correct, but the content was not.

In our case, we were using the premium WP Rocket plugin for caching, which we include for our hosting clients. More than likely, this could happen with other caching plugins like W3 Total Cache, WP Fastest Cache, or others.

My client was very concerned, but we’ve been doing this a long time and I already knew how to troubleshoot.

We quickly determined that the problem went away with the caching plugin inactive, but of course we’d like to use it, so I wanted a better solution.

The first thing I tried solved the problem for me immediately. So what did I do?

Steps to fix all pages having home page content

    1. Deactivate the caching plugin (Plugins -> Find the plugin -> Press “Deactivate”)Screenshot of deactivating the WP Rocket Plugin
    2. Reset your permalink structure by going to Settings -> Permalinks and then clicking “Save Changes”
      Screenshot of the WordPress backend where you need to go to reset the permalink structure of your WordPress site
    3. Reactivate your caching plugin and clear the cache (instructions vary depending on specific plugin used)
      Screenshot of the WordPress backend interface where you clear WP Rocket's cache

And that’s it! You should be all set.

I suspect this is an issue that only really happens as a result of migration and probably isn’t very common. But if it happens to someone else, I hope they find this post and get it solved immediately.

About Brian Johnson

Brian Johnson

Brian Johnson is the founder of PageCrafter, a Minneapolis-area web design and hosting company. He specializes in WordPress development, website security, hosting infrastructure, and ongoing website maintenance. Brian works hands-on with hundreds of business websites, helping organizations keep their WordPress sites secure, reliable, and up to date and has been building websites for almost two decades.

Leave a Reply

Your email address will not be published. Required fields are marked *