By Zo
I’m switching my domain name to another website. How do I go about doing that? Or how can I add my website files to my website on digital ocean?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
You’ll need to transfer your files over and you can use FTP for that. You can check this article right here:
https://docs.digitalocean.com/products/droplets/how-to/transfer-files/
Having said that, you’ll need to configure your Droplet as well. The best way I think if you don’t have technical knowledge is getting one of the marketplace droplets;
https://marketplace.digitalocean.com/apps/lemp
It will configure everything you need to host your website, just follow the instructions. Once you have it configured, you can use the first article on how to transfer the files over.
Hi there!
If you’re hosting your website on DigitalOcean and want to switch your domain or add your website files, here’s how to do it:
Connect to your Droplet via SFTP (using tools like FileZilla) or SSH. Upload your website files to the appropriate web directory (e.g., /var/www/html for Nginx/Apache).
If you want to do this over SSH, you can use Rsync as described here:
If you prefer not to use SSH, you can follow the steps here:
https://docs.digitalocean.com/products/droplets/how-to/transfer-files/
Update your domain DNS records:
A record pointing to your Droplet’s IPv4 address.CNAME record for www pointing to your domain.Configure Your Web Server:
server_name in your Nginx config or ServerName in Apache.You can follow the steps here:
Or alternatively use the 1-Click installation from the Marketplace:
Let me know if you have any questions.
- Bobby
I went through the same thing when I moved my site https://lgspuanhesaplamaa.com.tr/ to a new domain hosted on DigitalOcean. The key steps are pretty straightforward — first, point your new domain’s DNS to your DigitalOcean droplet’s IP address. You can do that from your domain registrar’s control panel by updating the A record.
Next, upload your website files to the server (usually under /var/www/html if you’re using Apache or /usr/share/nginx/html for Nginx). You can use FileZilla (SFTP) or scp from the terminal to transfer them. Don’t forget to update your server block or virtual host configuration so it matches the new domain name.
Once that’s done, restart the web service and test it in your browser. A quick cache clear or DNS flush sometimes helps the change show up faster.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.