Migrating entire online site to local server gives “The requested URL /login/ was not found on this server.”

I know this is ancient history, but this one definitely needs an answer as it is the first hit when searching for this problem on Google.

You may have forgotten to enable the rewrite module for Apache:

Enable the module in Apache:

a2enmod rewrite

Followed by Apache restart – systemd method shown below as this is currently what you are most likely to find on CentOS servers:

systemctl restart apache2