Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Replace a subdomain with a domain
Update 07/14/2026
This guide explains how to replace, within an Infomaniak Web Hosting account, the address of a site currently using a subdomain (https://dev.domain.xyz) with the main domain (https://domain.xyz).
Introduction
- The operations in brief:
- Start with a site created and accessible via the main domain URL
dev.domain.xyz. - Add an alias
domain.xyzto it. - Reverse the two types (the main domain becomes an alias, and the alias becomes the main domain).
- Remove the old name
dev.domain.xyz.
- Start with a site created and accessible via the main domain URL
- Note that the site's location 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 site in production. - Also, please refer to the last chapter of this other guide.
Reverse a linked domain
Here are the detailed steps to switch from a site with a subdomain-type address to a direct address (here, dev.domain-example.ch becomes domain-example.ch):
- Click here to access the management of your site on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the site in question:

- Then, click on the chevron to expand the Domains section of this site:
- Click on the Add a domain button:

- Add the new desired name (if the domain name to be added is on the same Organization, it will be suggested in the list; otherwise, enter its spelling):

- Activate or deactivate the checkboxes:
- If the added domain is not in the form of a subdomain, you can request to automatically add the
wwwversion of the domain. - Automatically update (if possible) the DNS records of the added domains.
- Automatically update related SSL certificates (if possible).
- If the added domain is not in the form of a subdomain, you can request to automatically add the
- Click on the button to Confirm and wait:

- Once the addition is complete, click on the action menu ⋮ located to the right of the domain that has just been added and that you want to set as the primary domain:
- Choose to define the item as the primary domain:

- Validate the operation to proceed with the domain switch:

Link to this FAQ: https://faq.infomaniak.com/2160
Has this FAQ been helpful?