Question

How do i change to a completely new domain?

Hello,

I’m having quite a difficult time changing the domain to a completely different one. Currently the domain with SSL is the aaa.com but im looking to change over to bbb.com and also install SSL.

I just want it to point to bbb.com, i don’t care about the old domain redirecting.

I can’t seem to find any tutorials for this.

Thanks


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey there,

First you have to create the nwe domain on your domain provider bbb.com and point it to your server, then you have to change your apache/nginx site configuration,changing the server name from aaa.com to bbb.com. Then you will be able to create your SSL certificate through a Certificate Authority or creating yourself the certificate usign tools like certbot.

Hey friend,

There are some specifics on your setup that I do not know, and for that reason I’m going to focus on the high level steps.

Step 1: Change your virtual host (Apache) / server block (Nginx) to adjust references from aaa.com to bbb.com.

Step 2: Run certbot to get a certificate for bbb.com, you’ll be prompted for the values.

Keep in mind that your web application may create another step for you. Applications like Wordpress, for example, store the URL they are intended to run at in their configurations, which causes them to redirect all traffic to the domain set.

Jarland