If you ever find yourself moving wordpress or your whole website, moving it can break your permakinks, making all your links go to a 404 error. Here is how I fix this.

Log out of WordPress, and open your wp-config.php file. Add this line at the end.

define('RELOCATE',true);

Log back in to the administrator account, and go to Settings > Permalinks. Click the save button.

Now your permalinks should work for you again, and you can delete the line you added to the config.php file.

If this doesn’t work for you, or for a number of other WordPress fixes, I highly recommend Sivel’s WordPress FAQ. This page has saved my day a few times.