By ranthal
I have 2 domains registered under Google domains, call them olddomain.com & newdomain.com. By the names you might have guessed we are going through a rebranding. Right now, droplets, certs, etc are all setup for olddomain.com. While we wait on cert for newdomain.com we’d like to setup some sort of redirect/masking so if anyone goes to olddomain.com the cert there works but URL appears as newdomain.com. What is the process to accomplish this?
Am I over complicating it with masking & is it as easy as changing the CNAME to newdomain.com then setting up Google domains to point to DO name servers?
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!
You will need to handle the redirection at the http server level because that’s where you get to know which site the user wanted to browse and thus where you redirect them to.
You will also need to adjust DNS so users are sent to the new server.
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.