Wordpress - WordPress Migration: Getting 404 Errors: Only Home Page works

Go to settings->permalinks and click on save button to rewrite flush. And then empty your browser cache. It'll work hopefully.


I found the solution here:

https://www.digitalocean.com/community/questions/wordpress-permalinks-not-working-on-ubuntu-14-04

The thing is that we need to allow the override all option in httpd.conf (location: /etc/httpd/conf/httpd.conf) for your specific hosting directory.


Sometimes on a new server it's just the rewrite module missing from Apache config.

sudo a2enmod rewrite
sudo service apache2 restart