After I migrated a website for WordPress – Saved changes in wordpress settings >> permalinks. Homepage only working, links not working

For those who may come along: In addition to your proposed answer, you can use the .htaccess file in your web root directory. These often get missed as they are hidden files on linux systems. You can check and make sure that was copied over, or make a new file and paste the rewrite rules into that. Here is an example of mine.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>