I have moved one of my website to a new domain, below is what i did.
- Backed up database
- Uploaded all the files to the new server.
- Imported sql into new server via
phpmyadmin
- Now i have used this script to change URL in database.
Now, problems i am facing are:
- All the links are going to old domain.
- All the images are linked to old domain.
wp-admin
is also redirected to old domain when i try to runmydomain.com/wp-admin
Please help if you have any ideas about this, any help would be greatly appreciated.
define('WP_SITEURL', 'https://domain.com'); define('WP_HOME', 'https://domain.com');