Investors

Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Replace a subdomain with a domain

Update 10/05/2026

This guide explains how to replace, within an Infomaniak web hosting plan, the address of a website currently using a subdomain (https://dev.domain.xyz) with the main domain (https://domain.xyz).

 

Introduction

  • Here's a summary of the steps:
    1. Start with a website created and accessible via the main domain's URL: dev.domain.xyz.
    2. Add an alias: domain.xyz.
    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 website'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 website in production.
  • Also, refer to the latest chapter of this other guide.

 

Reverse a linked domain

Here are the detailed steps to switch from a website with a subdomain-type address to a direct address (here, dev.domaine-exemple.ch becomes domaine-exemple.ch):

  1. Click here to access the domain management section in your Infomaniak Manager (❓: help).
  2. Click on the name of the domain in question.
  3. Then, click on the down arrow ‍ 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. Enable or disable the checkboxes:
    • If the added domain is not in the form of a subdomain, you can request that the www version of the domain be added automatically.
    • Automatically update (if possible) the DNS records of the added domains.
    • Automatically update the related SSL certificates (if possible).
  7. Click the button to Confirm and wait:
  8. Once added, click on the action menu ⋮ located to the right of the domain you just added and want to set as the primary domain:
  9. Choose to define the item as the primary domain:
  10. Confirm the operation to proceed with the domain swap:

Has this FAQ been helpful?