program using: ubuntu 18.04
Problem: so i have two local wordpress sites running on my localhost, say site1.com and site2.com
I have migrated all of the databases from site1.com to site2.com. Now when I click on one of the link that's in site2.com, it's changing the URl to site1.com/pageIwantTovisit. I don't want that. I want it so that, if I'm on site2.com, then all the links should refer to site2.com/pageIwantToVisit.
I'm using phpmyadmin. I've changed the home and siteURL to site2.com but the links don't change unless i manually hardcode all the link which will take forever.
The link in site2.com should go from about page to blog page. Thank you.