Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Replace a subdomain with a domain
This guide explains how to replace, within an Infomaniak Web hosting, the address of a site currently a subdomain (https://dev.domain.xyz
for example) with the main domain (https://domain.xyz
).
Preamble
- The operations in brief:
- We start with a site created and accessible via the URL of the main domain
dev.domain.xyz
. - We add an alias
domain.xyz
. - We swap the two types (the main domain becomes an alias and the alias becomes the main domain).
- We remove the old name
dev.domain.xyz
.
- We start with a site created and accessible via the URL of the main domain
- Note that the site remains in the original folder on the server; the name of this location may be in the form
/sites/dev.domain.xyz
but this has absolutely no impact on the live site. - Also, familiarize yourself with the last chapter of this other guide.
The operations in detail
To switch from a site with a subdomain address "dev.domain.xyz
" to a direct address "domain.xyz
":
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product in question.
- Click on the chevron to expand the Domains section of this site:
- Click on the button Add a domain:
- Add the desired new name, check the corresponding boxes.
- Click on the button to Confirm:
- Once the addition is complete, click on the action menu ⋮ located to the right of the relevant item.
- Choose to set the item as the primary domain:
- Confirm the operation to proceed with the domain swap.
Link to this FAQ: