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
- Deactivate the caching plugin (Plugins -> Find the plugin -> Press “Deactivate”)
- Reset your permalink structure by going to Settings -> Permalinks and then clicking “Save Changes”
- Reactivate your caching plugin and clear the cache (instructions vary depending on specific plugin used)
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.