1. Start
upload your public_html zip file in the ftp of the new domain and then extract into any folder of the public_html by creating it
after extraction move all the files into the main public_html file and then you have to go to the database of that domain from hosting and create new database
while creating new database save the name, username, and password of the database
then put those information into the wp-config.php file where it looking like this
define( 'DB_NAME', 'u123456789_wp123' );
define( 'DB_USER', 'u123456789_wp123' );
define( 'DB_PASSWORD', 'your-password-here' );
define( 'DB_HOST', 'localhost' );
also change the domain name to your new domain on which you upload the zip file
after that you have to add your sql file into the database when you open database it gives you the option to upload your sql file
then you have to upload this folder into the public_html and follow next steps
2. Upload by FTP
Unzip the file on your computer. The folder is called Search-Replace-DB-master.
Rename the folder to something random, for example srdb-x7k29.
Upload that folder into the WordPress root, next to wp-config.php. On Hostinger this is domains/YOURDOMAIN.com/public_html.
3. Open it in the browser
Go to https://YOURDOMAIN.com/srdb-x7k29/.
4. Fill in the form
In the database section, enter the name, user, password and host from wp-config.php. (use same information that you add in the wp-config.php)
In search for, enter the old domain, for example https://old-domain.com.
In replace with, enter the new domain, for example https://new-domain.com.
Leave “all tables” selected.
5. Dry run, then the real run
Click dry run and check that it finds changes in the posts, postmeta and options tables.
If it looks right, click live run.
If your old URLs came in both http:// and https:// forms, run it again for the other form. Run it a third time without the protocol (old-domain.com to new-domain.com) to catch anything left, such as JSON-escaped URLs.
6. Delete it right away
Delete the folder from the server by FTP. Leaving it online is a security risk, because anyone who finds it could change your database.
7. Finish up
Go to Settings → Permalinks and click Save.
Go to Elementor → Tools → Regenerate CSS & Data, and use Replace URL there too if you see old links.
Clear all site and hosting cache.