I am currently migrating a Drupal 8 site from one cloud server to another. The servers are Ubuntu and CentOS (AWS EC2) respectively. After copying the files and exporting-importing the database, I am able to see the home page successfully on the new server.
However, whenever I click on any link or enter any path in the browser, I get the following error:
The requested URL /user/login was not found on this server.
What can I check to eliminate this error? I thought this may have something to do with clean URLs, but it seems that Drupal 8 deprecated that setting. What else can I try?
Edit: Here is the .htaccess file in case it helps: