All Collections
Service
Delivery
How to redirect a secondary to the primary domain?
How to redirect a secondary to the primary domain?
Updated over a week ago

The tutorial explains how to redirect traffic step-by-step.

The following steps will guide you through the process of how you can redirect the additional custom domains to the primary domain.

A redirect domain is useful when we want to deliver the website only from the primary domain, such as redirecting non-www to www, as for example, example.com -> www.example.com.

Step 1: Navigate to the Edge CNAME page

In the first step, we need to navigate to the Edge CNAMEs page which is under the Settings page within the project's dashboard. You can visit the page by following the below path:

Dashboard -> Project -> Settings -> Edge CNAMEs

The following screenshots will help you better understand:

You need to open the project's dashboard from the main dashboard:

To reach the Edge CNAME page, expand the settings menu by clicking on the dropdown menu, as shown below:

To navigate to the Edge CNAMEs page, please click on the CNAMEs routing link, as the screenshot below:

Finally, you have reached the Edge CNAMEs page. In the screenshot below, you can see the inner page for the Edge CNAMEs page.

Step 2: Redirect a specific domain to its primary domain

It is only possible to redirect traffic from the primary domain to the secondary domain. If you wish to redirect traffic from the primary domain to the secondary domain, first you need to change the primary domain.

Click on the 'Set Redirect to Primary Domain' action button as shown below to enable redirect to the primary domain:

You'll see a new tag redirected appear next to the secondary domain and the Set Redirect to Primary Domain button will be changed to Remove the Redirect when you click the action button to save.

The 'Remove the Redirect' action button allows you to remove the redirect with the same flow.

The propagation period for this action can take up to 30 minutes for all regions and PoPs to be fully propagated.


Product Tour:

Please note that you need to have created at least one service before you can follow the product tour.

Product tour: Set Redirect to Primary Domain

Did this answer your question?