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 as a subdomain (e.g., https://dev.domain.xyz
) with the main domain (https://domain.xyz
).
Introduction
- The steps in brief:
- Start with a site created and accessible via the main domain URL
dev.domain.xyz
. - Add an alias
domain.xyz
to it. - Swap 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 its original folder on the server — this folder may have a name like
/sites/dev.domain.xyz
, but this does not affect the live site. - Also, review the final chapter of this other guide.
The Detailed Steps
To transition from a site with a subdomain address "dev.domain.xyz
" to a direct address "domain.xyz
":
- Click here to access your product management on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Then click on the chevron to expand the Domains section of this site.
- Click the Add a Domain button:
- Add the desired new name and tick the appropriate boxes.
- Click the button to Confirm:
- Once added, click on the action menu ⋮ to the right of the relevant item.
- Choose to set the item as the main domain:
- Confirm the operation to complete the domain swap.
Link to this FAQ: