1. Home
  2. Docs
  3. CDN
  4. Configuring DNS
  5. Setting up a Domain Alias

Setting up a Domain Alias

If your site shares content over multiple domains and subdomains, setting up QUIC.cloud Domain Aliases will ensure that all of your content, regardless of domain, is served through the CDN.

Connect all Domains to QUIC.cloud

Every domain and subdomain you wish to use must be pointing to QUIC.cloud.

If you are using the CNAME method, then you will need to have a CNAME DNS record created for each subdomain. Set the value of each record to the value assigned to you by QUIC.cloud (e.g. c12345.tier1.quicns.com).

For more information on setting up your DNS via CNAME, please see our instructions for either a root domain (e.g. example.com) or a subdomain (e.g. www.example.com, sub.example.com) as appropriate.

If you are using QUIC.cloud DNS, please see these instructions for configuring your domains/subdomains to use QUIC.cloud.

Add Domain Aliases, Example 1

To make this easier, let’s work with an example. Let’s say the main domain you set up with QUIC.cloud is colors.com. Your site content also can be accessed from these domains and subdomains:

  • www.colors.com
  • rainbow.colors.com
  • colorful.com

The www version of your main domain is always considered a domain alias, no matter what. So we don’t have to do anything to make sure www.colors.com is using QUIC.cloud, as long as the DNS was set up correctly in the first step.

So now all we need to do is deal with rainbow.colors.com and colorful.com.

Adding Domain Aliases

Navigate to Settings, and add your domains, one per line, in the Domain Alias box:

rainbow.colors.com
colorful.com

Press Save Settings

Add Domain Aliases, Example 2

Let’s stick with a main QUIC.cloud domain of colors.com. Your site content also can be accessed from these domains and subdomains:

  • www.colors.com
  • colorful.com
  • www.colorful.com

As previously mentioned, the www version of your main domain is always considered a domain alias. So we don’t have to do anything to make sure www.colors.com is using QUIC.cloud, as long as the DNS was set up correctly in the first step.

So now all we need to do is deal with colorful.com and www.colorful.com.

We could set this one up exactly as the first example, but there is another option. Navigate to CDN > CDN Config > QUIC.cloud CDN Settings.

Mapping both www and non-www
You want to use both colorful.com and www.colorful.com with QUIC.cloud CDN, so set Map Both www/non-www to ON. Now you don’t need to add www.colors.com as a Domain Alias because it will already be mapped as one.

Navigate to Settings, and add the remaining domain in the Domain Alias box:

colorful.com

Press Save Settings

Now, any visitor to colors.com, www.colors.com, colorful.com, and www.colorful.com will go through QUIC.cloud.

Was this article helpful to you? Yes No 2