Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
This guide explains how to change the target folder where your website is stored on an Web Hosting Infomaniak.
Introduction
- On an Infomaniak Web Hosting, it is possible to install several websites with their own domain name (multisite management).
- Each of these sites is stored in a folder of your hosting, which is the target of the site. It is possible to freely modify the target of a site. Example:
- The site
domain.xyz
has as target for example the folder/web
… - You publish a site in a new subfolder of
/web
named for example/web/v2
… - By modifying the target
/web
of the sitedomain.xyz
to/web/v2
, the sitedomain.xyz
will display the content of the folder/web/v2
without obviously including this path in the browser's address bar and without leaving access to any files still located in/web
.
- The site
- It is recommended not to create "
v2
" in a subfolder of "web
" but next to it, by creating the folder at the root of your hosting. - These folders actually exist on the server, but you are not required to connect via FTP to manage them.
Display the folder of your websites
To find information about the folder where your site is stored:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Then click on the chevron to expand the Information section of this site.
- The highlighted indication below is the location of the example site:
Change the target folder or website folder
To manage the location of a website within the hosting:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on Manage in the Advanced Settings section:
- Manage the desired location for the site:
- Click on the button to Save at the bottom of the page.
This guide explains how to force the display of the web hosting name in the browser's address bar to one of the domain names installed as an alias/synonym or how to display the main domain in the address bar instead of the alias.
Limit the "duplicate content" or duplicate content
Suppose you have the hosting votre-domaine.com
at Infomaniak and that as an alias domain name you have installed www.domainesyno.xyz
.
By default, when you type either of the domain names (votre-domaine.com
or domainesyno.xyz
) in your browser's address bar, the one you typed will be displayed in the address bar.
You therefore have the possibility to force the display of a different address than the one that was typed. So if someone types domainesyno.xyz
, then it is votre-domaine.com
that will automatically appear in the address bar.
A code must be entered into a file called .htaccess
which must be located at the root of your hosting (in the /web
folder of your FTP). If this file does not yet exist, you must create it on the server.
Then insert these directives into the file:
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://votre-domaine.com/$1 [R=301,L]
Adjust the code above according to these instructions:
- Replace
votre-domaine.com
with your domain name with the appropriate extension (.com, .fr, .ch, etc.) that you want to display in the browser's address bar for the visitor. Addwww.
before your-domaine.com if necessary. - Replace the second line of the code above with "
RewriteCond %{HTTPS} off
" if a loop error occurs, this means that HTTP/2 is active for this site
Also, familiarize yourself with the automatic redirections to https.
This guide details how to work on a WordPress site with a development environment.
Preamble
- The process can be used at the beginning of a staging process, that is, the creation of a new version of your live website, in a development or testing environment:
- This allows website owners to test features, security updates, plugins, themes, WordPress updates, and content changes, without risking disruptions or issues on the live site.
- Once the tests have been conducted and the changes have been validated on the staging copy, it is possible to deploy them to production (on the live site) using automated deployment tools or by making the changes manually.
- Make your life easier! If needed, **local partners recommended by Infomaniak can handle these procedures**. Launch a **free call for tenders**. They take care of everything, freeing you from technical details.
Simple method
To install and set up a new WordPress site with the Infomaniak installer without overwriting your current website:
1. Install WordPress in a second location
Refer to this other guide to create the new site (in parallel with the old site domain.xyz
) by assigning it a domain name in the form of new.domain.xyz
for example and installing WordPress via Web Applications (Infomaniak WordPress installer).
At this stage, the main site (domain.xyz
) remains untouched and you can calmly work on the new site new.domain.xyz
. Both function in parallel.
2. Replace the old site with the new one
Once the new site is complete, you can delete the first site to reuse its domain name for the new one:
- Delete the old site to make the domain name available and reuse it.
- Add domain.xyz as an alias for
new.domain.xyz
. - Reverse the alias with the main domain.
- Remove (unlink/delete)
new.domain.xyz
which has become an alias. - As a precaution, check the main URL of the WordPress site via the Web Applications dashboard on the Infomaniak Manager, to ensure it matches the new name, and not the subdomain you had chosen.
Advanced method
To work on an existing WordPress site without modifying its public version, it is recommended to proceed in 3 steps:
- Duplicate the existing site
- Work on its copy
- Change the target directory of the production site to the production environment directory and modify the URLs of the pre-production site according to the domain name of the production site using a WordPress extension or via phpMyAdmin.
1. Duplicate the site to a second location
- Refer to this other guide to create the new site (in parallel with the old site
domain.xyz
) by assigning it a domain name in the form ofnew.domain.xyz
for example and installing WordPress via the Applications Web (Infomaniak WordPress installer). - Copy your existing site and paste it onto the newly created second WordPress site, using a WordPress extension.
2. Edit the duplicated site
- At this stage, the main site (
domain.xyz
) remains untouched and you can calmly work on the new sitenew.domain.xyz
. Both function in parallel. - It is recommended to install a WordPress extension (there are dozens available) dedicated to putting the second site into maintenance mode.
- If you modify the structure of your site and the URLs of your articles/pages change, you can use a free extension like Redirection to automatically create redirects. This will prevent your visitors from encountering 404 pages while search engines reindex your site or if external sites link to your site.
3. Replace the target
- When you have finished redesigning your site, all you have to do is change the target directory of the production site to the production environment directory and change the URLs of the pre-production site according to the domain name of the production site using a plugin.
- If you are using a caching extension like WP-Rocket, W3 Total Cache or WP Super Cache, it will be necessary to completely clear all the cache or even disable and then reactivate the plugin.
- If you continued to modify your site in production during the site overhaul, it will be necessary to retrieve your modifications (articles, media, pages, etc.).
- After the usual checks (missing images, broken links, etc.), all you have to do is disable the maintenance mode of your site and admire the result.
This guide explains how to change the URL of your site containing a Web Application (such as Prestashop or Joomla) previously installed on your paid Web Hosting offer.
Prerequisites
- The domain name you wish to use must first be added as an alias to the main domain on the relevant site.
Specific guides
Refer to these guides if the application in question is:
Guides for any other Web Application
To change the address of the site created with an Infomaniak Web Application, to another domain name that is already in the same Organization:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product concerned:
- Click on the action menu ⋮ located to the right of the relevant Web Application.
- Click on Settings for the application:
- Click on Modify to the right of the relevant Web Application address:
- Under Site URL, select the desired web address from the dropdown menu:
- If you have not followed the prerequisites above, the desired domain will not appear even if it is registered in the same Organization:
- If you have added the domain as an alias of the site, the desired domain will appear and you will be able to select it to replace the previous domain:
- If you have not followed the prerequisites above, the desired domain will not appear even if it is registered in the same Organization:
- Click on the Save button.
Domain ….preview.infomaniak.website ?
Among the URLs present in the dropdown menu, the preview URL allows you to access your site in case the site's domain name is not yet correctly configured to point to your Web Application:
Learn more
- Install or uninstall a Web Application
- Configure the backups of the Web Applications
- Restore a Web Application
This guide explains how to install a new Web Application (Joomla, Drupal, Typo3, PrestaShop, etc.) in a few clicks on the paid Web Hosting offers.
Prerequisites
- Have a Infomaniak Web Hosting (order if necessary).
- Add a blank website to the Infomaniak hosting.
Specific guides
Take note of these guides if you are concerned with the specific installation of:
Refer to this other guide regarding additional technologies that can be installed in a few clicks but on Cloud Server only.
Guides for any other Web Application
To access Web Hosting and install a Web Application:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on the Add an app button:
- Choose the desired application (if necessary, filter and search).
- Click on Select:
- Click at the bottom of the page on Next.
- Enter a name.
- Leave the default location or choose to install the app in a new folder that you can create using an icon visible to the right of point 8 in the image.
- Optionally, choose to install an earlier version if necessary.
- Click on the Next button:
- Set the username and password.
- Specify certain advanced settings if necessary (backup type, among others).
- Review and accept the terms of use of the selected app.
- Click on the Next button:
- Confirm the installation of the application in the next step and wait.
- Take note of any error message on the screen if, for example, the installation folder chosen is not empty or if the PHP version of the site on which you are attempting the installation is not compatible.
Uninstall a Web Application
To access Web Hosting and uninstall the previously installed application:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on the action menu ⋮ located to the right of the application to uninstall.
- Click on the trash can icon to delete the application:
- Confirm the deletion.
Learn more
- Modify the domain name associated with the Web Application
- Configure backups for Web Applications
- Restore a Web Application
This guide offers two methods to access the administration interface of a WordPress site installed via the tools Infomaniak, for example to update the content.
Prerequisites
- Know your access credentials…
- … to WordPress
- … to the Manager Infomaniak
Access the WordPress console…
1. … from the Manager
To access WordPress from the Manager:
- Click here to access the management of your WordPress site on the Infomaniak Manager (need help?).
- If your site does not appear here, it means it was not installed via the Infomaniak tools… refer to the official documentation.
- Click directly on the name assigned to the relevant product.
- Click on the Edit button to open the WordPress login page:
- Enter the username and password chosen during the WordPress installation.
2. ... via the URL /wp-admin
By default, simply add the term /wp-admin
to the end of your domain name's URL in your web browser's address bar to access the WordPress console login page directly.
If the address of your WordPress site is for example https://domain.xyz
, the address to access the WordPress administration interface will be https://domain.xyz/wp-admin
.
What to do if the shortcut ./wp-admin does not work?
- If the shortcut
./wp-admin
does not work, you might be using a security extension that modifies the URL of certain pages to limit attempts to hack your site (example of plugin)… - If you need to access the WordPress console and your domain name is not functional at the moment, it is possible to switch the main domain name to the preview address..
This guide explains how to run the open source dependency manager Composer 2 using an SSH command.
Preamble
- Composer is an open-source dependency manager for PHP that allows you to define, install, and update the libraries required for a PHP project.
- Composer 1 has been obsolete since 2021 and will no longer allow the installation of new packages or updates since 2025.
- Only version 2 of Composer is now supported and available on all PHP versions from 7.2 to 8.3.
Run Composer 2
Composer 2 is already pre-installed and accessible via SSH. Therefore, there is no need to install it manually.
Simple usage
Log in to your hosting via SSH, then use the following command:
composer
This command will automatically run version 2 of Composer, which is compatible with the PHP version currently in use in your session.
Check the active version
You can check the available version of Composer with:
composer --version
Example output: Composer version 2.5.0 2022-12-20 10:44:08
Force a specific PHP version
If you want to run Composer with a specific version of PHP, aliases are available. For example:
composer_php8.1 --version
or for example:
composer_php7.4
These aliases allow you to run Composer 2 with the specified PHP interpreter, useful for testing or deploying a project on a target version of PHP.
This guide details the sending of authenticated emails from a website hosted by Infomaniak using an SMTP configuration; the configuration of an authenticated SMTP server is presented for the main CMS.
Preamble
- Using authenticated SMTP for sending emails from your applications offers numerous advantages compared to the standard, unauthenticated PHP mail() function :
- enhanced security,
- improved delivery reliability,
- more precise error handling,
- optimal compatibility with third-party mail servers,
- and complete traceability of sent emails.
- Recommended settings:
SMTP configuration examples…
Prerequisites
- Have an email service.
- You have the option to use the Service Mail offered by Infomaniak or any other email service of your choice.
When you have an email address whose domain is attached to your website ( e-mail@domain-site.xyz for example, provide its details to use it for sending via SMTP from the web server:
... on WordPress
- Log in to the WordPress admin panel.
- Install an SMTP extension (WP Mail SMTP works).
- Configure the extension, for example:
From then on, an email sent from a contact form present on the site (default form Divi for example, it will be via an SMTP method.
To ensure this, simply check the headers of a message received via this method, notably the line x-mailer
which may indicate, for example, WPMailSMTP/Mailer/smtp
instead of PHPMailer
.
Note: the x-mailer can be any indication, not necessarily representative of the actual sending method!
... on Prestashop
- Log in to the Prestashop admin panel.
- Go to Advanced Settings then E-mail.
- Configure sending via SMTP:
Then check (to avoid an error like Could not instantiate mail function
or sender mismatch
) that the address you have configured in these advanced settings matches the address that Prestashop uses for sending. To do this:
- Log in to the Prestashop admin panel.
- Go to Store Settings.
- Click on Contact in the left sidebar.
- On the Contacts tab, check that the email address mentioned is the same as the one configured previously.
- Edit the email addresses if necessary:
- Click on the Stores tab.
- Check (and correct if necessary) that the email address mentioned is the same as the one configured previously:
... on Joomla
- Log in to the Joomla administration panel.
- Click on System in the left sidebar.
- Click on Global Configuration:
- Click on the Server tab.
- Configure sending via the SMTP method:
This guide explains how to create a homepage on your Infomaniak website using the welcome page creation tool, a simplified help to create content quickly and easily. To create a more complete site, there is Site Creator.
Prerequisites
- Have a Infomaniak Web hosting (even a simple Starter, the basic Web page to activate if necessary).
Create a welcome page
To access the creation tool:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on Page and maintenance in the left sidebar.
- Check or select the domain name of the site on which you want to install the web page.
- Click on Create a homepage or Customize:
You can then choose a theme, set the text visible to your visitors, insert an image into the body of the page, manage the SEO content of your page, add a background image, specify social media usernames if necessary, etc. and all of this can be modified at any time.
Click the blue button at the bottom of the page to save and publish your changes.
Note that the tool can be used in conjunction with FTP management of your web hosting if necessary.
Disable and delete the welcome page
To delete the homepage that has been automatically placed at the root of your website's directory:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on Page and maintenance in the left sidebar.
You can delete the welcome page using the trash can icon; this will permanently delete the content of the welcome page!
This guide explains how to update a Let's Encrypt SSL certificate for a website hosted by Infomaniak.
Preamble
- It may be necessary, following the addition or removal of aliases to a website, to regenerate a certificate to include the new domain names linked to the website.
- The dashboard will clearly indicate that one of the domains linked to the site is not included in the current SSL certificate:
Update a Let's Encrypt certificate
To access certificate management:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product in question:
- Click on the action menu ⋮.
- Click on Change the certificate:
- Select the type of certificate to update.
- Click on the Next button:
- Check or select the relevant domains.
- Click on the button Install: