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:
    1. Start with a site created and accessible via the main domain URL dev.domain.xyz.
    2. Add an alias domain.xyz to it.
    3. Reverse the two types (the main domain becomes an alias, and the alias becomes the main domain).
    4. Remove the old name dev.domain.xyz.
  • 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):

  1. Click here to access the management of your site on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site in question:
  3. Then, click on the chevron to expand the Domains section of this site:
  4. Click on the Add a domain button:
  5. 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):
  6. Activate or deactivate the checkboxes:
    • If the added domain is not in the form of a subdomain, you can request to automatically add the www version of the domain.
    • Automatically update (if possible) the DNS records of the added domains.
    • Automatically update related SSL certificates (if possible).
  7. Click on the button to Confirm and wait:
  8. 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:
  9. Choose to define the item as the primary domain:
  10. Validate the operation to proceed with the domain switch:

Has this FAQ been helpful?