Set Up Domain Redirect
Last updated
Was this helpful?
Last updated
Was this helpful?
The instructions below will give you insights on configuring redirects between your service's custom domains on the Edgeport platform. This guide is an essential tool for optimizing the navigation experience for your users and establishing a polished online presence.
As an example, we’ll consider a scenario where you need to establish a redirect from your www.{domain_name} subdomain to the main {domain_name} domain. However, the process is analogous to other cases, such as directing traffic from the main domain to the www. subdomain or between two distinct domains.
The steps will be the following:
To begin, navigate to the Security > CNAMEs section of your service’s menu:
Here, you will find the application domains listed in the ADN CNAMEs pane (located at the top). Click on the Add New CNAME button above this list.
In the shown pop-up, enter the address of the required domain (www.edgeport.info in our case).
Click Add. The specified domain will instantly appear on the list of ADN CNAMEs.
Regardless of how many CNAMEs you have added, there is always a single Primary domain address. The traffic from your other servers can be redirected only to the domain that is marked as Primary:
Initially, this label is attributed to the domain name you specified when adding your service to the Edgeport platform. However, you can designate any of the other domains as the primary one using the Set Primary option available for each of them.
Now, to route the traffic from any of the domains to the primary one, click Set Redirect to Primary Domain next to the required CNAME.
The incoming request to this host will start being directed to the domain labeled as Primary, while the domain you’ve chosen as a traffic source will be marked as Redirected.
As a result, in our case, all users accessing the www.edgeport.info address will be automatically redirected to the edgeport.info host.
You can also cancel this redirect at any time by selecting the Remove The Redirect option for the appropriate domain: