Hello I am wondering how can i connect my new domain with files which was already on first domain? So, files from old domain is in public_html and databse too. Now i have registered new domain name,and i want to use that old files from old domain to new domain name. How to do that? How to connect old files and database for new domain name? Did i need to change domain name in php my admin database,and change details in wp-config.php ? Thanks in advance
Search "how to point a new domain name to an old site" you should find all the info you need. In short, you need to update your Name Servers / DNS A Record.
I know about DNS A record how to change,but how to connect old files with new domain? I was try to find on internet,but there is no such a explanation.
@lapidus I hope this article will answer your question. https://www.pcmag.com/how-to/how-to-transfer-a-website-to-a-new-domain In addition, if you are also concerned about SEO, you can use a 301 redirect from the old to the new domain. Thanks
One of the most important things to do when transferring your website from one domain name to another is to transfer your old site files to the new domain name. This ensures that your website will continue to function properly after the transfer is complete. There are a few different ways to do this, depending on how your website is set up. If you have a WordPress website, you can use the Velvet Blues Update URLs plugin to automatically update all of your old links to the new domain name. This plugin is free and easy to use, and it will save you a lot of time and hassle. If you have a website that is hosted on a server, you can use the File Transfer Protocol (FTP) to transfer your files from the old domain name to the new one.
For transferring files you can zip them on your current server , download the zip , upload it to your new server and unzip there or just use an FTP client to connect to old server and download files to your newserver. For database use something like PhpMYadmin to download the .sql export and import into your new server.