I want it so that when people type in domain X (which is connected through digital ocean) that they instead come to domain Y (which I have set up on webflow) Anyone that can explain easily to me as I am not so experienced. Many 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!
Heya @emillundvall,
There are a couple of ways to do this,
If URL forwarding is not available:
A record of Domain X to point to the IP address of the server where Domain Y is hosted (this information is available in your Webflow account).www in your domain (like www.example.com), then set up a CNAME record for www to point to Domain Y.Let’s assume you are using Apache.
Installing and configuring Apache to set up a redirect involves a few steps. I’ll guide you through a basic setup. This guide assumes you have some access to a server where you can install software and edit configuration files. If you’re not comfortable with command-line operations and server management, you might want to seek assistance from someone who is.
The installation process varies depending on your operating system. Here’s how you do it for Ubuntu and CentOS, two common Linux distributions.
sudo apt updatesudo apt install apache2sudo yum updatesudo yum install httpdsudo systemctl start apache2
sudo systemctl enable apache2
sudo systemctl start httpd
sudo systemctl enable httpd
You’ll need to edit the Apache configuration files. Typically, these are located in /etc/apache2 (Ubuntu) or /etc/httpd (CentOS). The exact file to edit can vary. It could be httpd.conf, apache2.conf, or a site-specific file under sites-available.
nano or vim. For example:sudo nano /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80> block if one exists, or at the end of the file.<VirtualHost *:80>
ServerName domainX.com
Redirect permanent / http://domainY.com/
</VirtualHost>
Replace domainX.com with your original domain and domainY.com with the domain you want to redirect to.
Save the file and exit the editor (Ctrl + X, then Y, then Enter for nano).
To apply the changes, restart Apache.
sudo systemctl restart apache2
sudo systemctl restart httpd
After restarting Apache, test the redirect by visiting Domain X in your web browser. It should automatically redirect you to Domain Y.
<VirtualHost *:443> block in the Apache configuration./var/log/apache2/error.log (Ubuntu) or /var/log/httpd/error_log (CentOS).Remember, server and network configurations can vary widely, so some steps may need to be adjusted to fit your specific environment.
Heya,
The easiest way will be to set a CNAME record to handle the redirect for you.
CNAME stands for Canonical Name and is used to alias one domain name to another. Set the CNAME record’s name or host field to www (if you want to redirect www.domainX.com) or leave it blank if you want to redirect the root domain (domainX.com). Then, set the value to the domain Y provided by Webflow. This might look something like proxy.webflow.com.
Keep in mind that the DNS will need some time to update, this can take from a few minutes to 48 hours, mainly due to DNS cache.
Regards
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.