Knowledge base

1000 FAQs, 500 tutorials and instructional 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) with the main domain (https://domain.xyz).

 

Preamble

  • Operations in brief:
    1. We start with a site created and accessible via the main domain URL dev.domain.xyz.
    2. We add an alias domain.xyz to it.
    3. We reverse the 2 types (the main domain becomes an alias and the alias becomes the main domain).
    4. We 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 of the form /sites/dev.domain.xyz but this has absolutely no impact on the production site.
  • Also refer to the last chapter of this other guide.

 

Reverse a linked domain

Here are the detailed operations to go from a site with a subdomain type address to a direct address (here dev.domaine-exemple.ch becomes domaine-exemple.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 concerned:
  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 desired new name (if the domain name to be added is under 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, it is possible to request to automatically add the www version of the domain.
    • 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 the addition is complete, click on the action menu located to the right of the domain that has just been added and that you wish to set as the main domain:
  9. Choose to set the item as the main domain:
  10. Confirm the operation to proceed with the domain reversal:

Has this FAQ been helpful?