If you’re running a WordPress site on an Apache server, you may have come across a problem where Apache is serving up pages from the wrong directory. This can happen for a number of reasons, but the most common is that the .htaccess file in your WordPress directory is not being read by Apache.
There are a few ways to solve this problem, but the most straightforward is to simply edit the .htaccess file and add the following line:
DirectoryIndex index.php
Save the file and upload it back to your server, and Apache should now be serving up the correct pages.