Report this

What is the reason for this report?

How do i change to a completely new domain?

Posted on February 26, 2019

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



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!

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.

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

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.