Streaming live at 10am (PST)

Subdomains that point to mydomain.webflow.io


#1

Hi,

let’s say our domain is mydomain.com
The subdomain provided by webflow is mydomain.webflow.io

Now instead of using mydomain.webflow.io, we want to use 2 different subdomains:

  1. staging.mydomain.com
  2. dev.mydomain.com

These 2 domains should point to mydomain.webflow.io, and NOT to our live page (mydomain.com), since they are for testing purposes. How would we go about this? Just adding it in the webflow hosting settings would not work, since then the 2 domain would point to mydomain.com.

(Why do we want those domains?

  1. We want them to be on the same domain, because that simplifies a lot of things, eg. retrieving cookies from http request only works on the same domain.
  2. We need 2 domains for testing, 1 where new local javascript code can be tested (dev.mydomain.com) and one where staged/working js code is used (staging.domain.com). Doing both things on the same domain (mydomain.webflow.io) is quite painful.)

#2
  1. You can either duplicate the project and add a second hosting plan to the project with your custom subdomains, or

  2. You can add those subdomains to your project BUT not set a default/primary domain, AND selectively publish changes to the correct subdomain (pain in the **** to coordinate a content freeze if you have multiple designers & collaborators), or

  3. Export and host on an external server.


#3

Hi, thanks for the answer. So the purpose of this is to have 2 testing domains that reflect the current status of our webflow project before we release to our live domain. We only publish changes to the default domain only once per week, but regulary to webflows subdomain. Content editors are not permitted to publish (since unfortunately they can not select single domains to publish to). So solution 1 & 3 are not possible.

I’m curious about option 2. Currently we have a default domain. So if you don’t have one, you have to manually select all the domains you want to publish to? We currently have a bunch of other domains like mydomain.de, mydomain.es etc that go to mydomain.com. Currently we get these publish options:

This would actually be okay for us, since we publish to the main domain only once per week anyway.


#4

Then you will not be able to use option 2, unless you remove those add-on/parked domains from your project, and apply the redirect from the domain name registrar instead.

Example (Google domains):