There are times when a WordPress site needs to be migrated to a new server or hosting. When 'everything' is set up, only the home page can be accessed as expected while all other pages return 404.
Following the below method should solve the problem in most case.
Refresh Perminant Link
- Select on of the Common Settings
- Save Changes
Enable Write Module (Apache2)
a2enmod rewrite service apache2 restart
Allow Override (Apache2)
<Directory /path/to/siteroot/> AllowOverride All Order allow,deny Allow from all </Directory>