Noms de domaine

Domain names serve as easily recognizable labels for online locations such as websites, translating difficult-to-remember numerical IP addresses into readable, memorable web addresses.

Odoo Online and Odoo.sh databases use a subdomain of the odoo.com domain by default (e.g., mycompany.odoo.com).

However, you can register a free domain name on Odoo Online or use a domain name you own.

Register a free domain name

To register a one-year free domain name for an Odoo Online database:

  1. Open the database manager.

  2. Click the database name and select Domain Names.

  3. Recherchez le nom de domaine souhaité et vérifiez sa disponibilité.

  4. Select the desired domain name, fill in the Domain Owner form, and click Register. The domain name is directly linked to the database.

    Important

    A verification email from noreply@domainnameverification.net will be sent to the email address provided. Verifying the email address is necessary to keep the domain active and receive the renewal quote before expiration.

  5. Finally, map the domain name to your Odoo website.

Conditions générales

The domain name registration is free for the first year. After this period, Odoo will continue to manage the domain in partnership with Gandi.net, the domain name registrar, and you will be charged Gandi.net’s renewal rate. Odoo sends a renewal quotation every year to the email address specified in the Domain Owner form several weeks before the domain’s expiration date. The domain is renewed automatically when the quotation is confirmed.

  • L’offre est uniquement disponible pour les bases de données Odoo Online.

  • The offer is limited to one domain name per client.

  • The offer is limited to the registration of a new domain name.

  • The offer is available to One App Free plans. Ensure your website contains sufficient original content for Odoo to verify that your request is legitimate and in compliance with Odoo’s Acceptable Use Policy. Given the high number of requests, it can take Odoo several days to review them.

Enregistrements DNS

To manage a free domain name’s DNS records:

  1. Open the database manager.

  2. Click the database name and select Domain Names.

  3. Click DNS.

Astuce

  • A : l’enregistrement A contient l’adresse IP du domaine. Il est automatiquement créé et ne peut pas être modifié ou supprimé.

  • CNAME: CNAME records forward one domain or subdomain to another domain. One is automatically created to map the www subdomain to the database. If the database is renamed, the CNAME record must be updated accordingly.

  • MX : les enregistrements MX indiquent aux serveurs où délivrer les e-mails.

  • TXT: TXT records can be used for various purposes (e.g., verifying domain name ownership).

Il faut compter jusqu’à 72 heures pour que toute modification apportée aux enregistrements DNS se propage dans le monde entier sur tous les serveurs.

Subdomains

Adding a subdomain label to a free domain name (e.g., subdomain.yourdomain.com) allows creating multiple websites or creating database records from emails received on an alias (e.g., email@subdomain.yourdomain.com).

To create a subdomain, add a CNAME record:

  1. Open the database manager.

  2. Click the database name and select Domain Names.

  3. Click DNS.

  4. Click Add DNS record and select CNAME.

    • Name: enter the desired subdomain label (e.g., subdomain).

    • Content: enter original database domain with a period at the end (e.g., mycompany.odoo.com.).

  5. Click Add record.

Note

To use a subdomain’s address for your Odoo website, it is necessary to:

  1. Map the subdomain to your Odoo database.

  2. Map the subdomain to your Odoo website.

Boîte de réception

The free domain name does not include a mailbox. However, there are two options for linking it to a mailbox.

Utiliser un sous-domaine

After creating a subdomain, go to the database and open the Settings app. Under the Alias Domain field, enter the subdomain (e.g., subdomain.yourdomain.com), click Create, and then Save.

Utiliser un fournisseur de messagerie externe

To use an external email provider, it is necessary to add an MX record:

  1. Open the database manager.

  2. Click the database name and select Domain Names.

  3. Click DNS.

  4. Click Add DNS record and select MX.

  5. Fill in the Name, Content, and Priority fields according to the external email provider.

Google Workspace

To use a free domain name with Gmail, register for Google Workspace.

Pendant l’inscription, sélectionnez Configurer en utilisant votre domaine existant lorsque vous êtes invité à Choisir une méthode de configuration, puis saisissez votre domaine (par ex. yourdomain.com) lorsque vous êtes invité à Quel est le nom de domaine de votre entreprise ?.

Vérification de la propriété du domaine
  1. Connectez-vous à Google Workspace. Lorsque vous êtes invité à vérifier la propriété de votre domaine, cliquez sur Basculer vers la vérification manuelle.

    Basculement vers la vérification manuelle sur Google Workspace
  2. Sélectionnez gandi.net comme Hébergeur du domaine et cliquez sur Continuer.

    Sélection du fournisseur d’hébergement du domaine sur Google Workspace
  3. Copiez le contenu du champ Valeur sous Enregistrement TXT. Laissez la fenêtre ouverte.

    Copie de la valeur TXT sur Google Workspace
  4. Add a TXT record.

    1. Open the database manager.

    2. Click the database name and select Domain Names.

    3. Click DNS.

    4. Click Add DNS record and select TXT.

    5. Saisissez @ dans le champ Nom, collez la Valeur fournie par Google dans le champ Contenu, puis cliquez sur Ajouter un enregistrement.

    Création d’un enregistrement TXT pour vérifier la propriété d’un nom de domaine
  5. Retournez sur Google Workspace, cochez la case au bas de la page, puis cliquez sur Confirmer.

Rediriger les e-mails vers Gmail
  1. Open the database manager.

  2. Click the database name and select Domain Names.

  3. Click DNS.

  4. Click Add DNS record and select MX.

  5. Saisissez @ dans le champ Nom, 1 dans le champ Priorité, smtp.google.com. dans le champ Contenu, puis cliquez sur Ajouter un enregistrement.

    Création d’un enregistrement MX pour rediriger les e-mails vers Gmail
  6. Ouvrez la console d’administration Google Workspace, cliquez sur Activer Gmail pour votre domaine, puis suivez les étapes.

Configurer un nom de domaine existant

If you already own a domain name, you can use it for your Odoo website.

Avertissement

To avoid potential SSL certificate validation issues, it is strongly recommended to follow these steps in the specified order:

  1. If you are transferring your website, set up URL redirections before transferring the domain name to preserve the website’s SEO.

  2. Add a CNAME record.

  3. Redirect your naked domain name (this step is optional but recommended).

  4. Map your domain name to your Odoo database.

  5. Map your domain name to your Odoo website.

Ajouter un enregistrement CNAME

Vous devez ajouter un enregistrement CNAME pour rediriger votre nom de domaine vers l’adresse de votre base de données Odoo.

L’adresse de destination de l’enregistrement CNAME doit correspondre à l’adresse de votre base de données telle qu’elle a été définie lors de sa création. (par ex. mycompany.odoo.com).

Les instructions spécifiques dépendent de votre service d’hébergement DNS.

Rediriger un domaine nu

Note

Bien que facultative, il est recommandé de réaliser cette étape.

Pour permettre aux visiteurs d’utiliser votre domaine nu (un nom de domaine sans sous-domaines ni préfixes) (yourdomain.com), vous devez créer une redirection 301 (une redirection permanente d’une URL vers une autre) vers www.yourdomain.com :

  • de http://yourdomain.com vers https://www.yourdomain.com, et

  • de https://yourdomain.com vers https://www.yourdomain.com.

The specific instructions depend on your DNS hosting service. However, not all of them offer to redirect a naked domain to HTTPS. If you encounter any issues, we recommend using Cloudflare.

Utiliser Cloudflare pour sécuriser et rediriger un domaine nu

  1. Inscrivez-vous et connectez-vous à Cloudflare.

  2. Saisissez votre nom de domaine dans le tableau de bord Cloudflare et sélectionnez Analyse rapide des enregistrements DNS.

  3. Choisissez un plan (le plan gratuit est suffisant).

  4. Suivez les instructions et recommandations de Cloudflare pour finaliser l’activation.

  5. Ajoutez un enregistrement CNAME pour rediriger votre domaine nu (yourdomain.com) vers le sous-domaine www (par ex. www.yourdomain.com) en cliquant sur DNS dans le menu de navigation, puis sur le bouton Ajouter un enregistrement, et utilisez la configuration suivante :

    • Type: select CNAME.

    • Name: enter @ (or yourdomain.com).

    • Target: enter www. + yourdomain.com, e.g., www.yourdomain.com.

    • Proxy status: toggle the option on (Proxied).

    • Cliquez sur Enregistrer.

    Ajout d’un enregistrement DNS CNAME à Cloudflare pour rediriger un domaine nu vers un sous-domaine www
  6. Ajoutez un second enregistrement CNAME pour rediriger le sous-domaine www (par ex. www.yourdomain.com) vers l’adresse de votre base de données (par ex. mycompany.odoo.com) en utilisant la configuration suivante :

    • Type: select CNAME.

    • Name: enter www. followed by your domain name, e.g., www.yourdomain.com.

    • Target: enter your database’s address as defined at its creation e.g., mycompany.odoo.com

    • Proxy status: toggle the option off (DNS only).

    • Cliquez sur Enregistrer.

    Ajout d’un enregistrement DNS CNAME à Cloudflare pour rediriger un sous-domaine www vers une base de données Odoo
  7. Define a redirect rule to permanently redirect (301) your naked domain (e.g., yourdomain.com) to both http:// and https:// by going to Rules ‣ Overview ‣ Create rule ‣ Redirect Rule. On that page:

    • Saisissez n’importe quel Rule name.

    • Dans la section If incoming requests match…, sélectionnez Custom filter expression et utilisez la configuration suivante :

      • Field: select Hostname.

      • Operator: select equals.

      • Value: enter your domain name, e.g., yourdomain.com.

    • Dans la section Then…, utilisez la configuration suivante :

      • Type: select Dynamic.

      • Expression: enter the following expression concat("https://www.yourdomain.com", http.request.uri.path), replacing yourdomain.com with your domain name.

      • Status code: select 301.

      • Preserve query string: enable the option by ticking the box.

    • Click Deploy.

    Définition d’une règle Cloudflare pour créer une redirection permanente (301)
  8. Go to SSL/TLS ‣ Overview ‣ Configure and ensure the encryption mode is set to Full.

    Définition du mode de chiffrement sur Full dans Cloudflare

Mapper un nom de domaine avec une base de données Odoo

Avertissement

Ensure you have added a CNAME record to your domain name’s DNS before mapping your domain name to your Odoo database.

Failing to do so may prevent the SSL certificate from being validated and could result in a certificate name mismatch error. Web browsers often display this as a warning, such as « Your connection is not private ».

If you encounter this error after mapping the domain name to your database, wait up to five days, as the validation may still be in progress. If not, you can submit a support ticket, including screenshots of your CNAME records.

  1. Open the database manager.

  2. Click the database name and select Domain Names.

  3. Click Use my own domain.

  4. Enter the domain name (e.g., www.yourdomain.com), click Verify, then I confirm, it’s done.

Mapper un nom de domaine avec une base de données Odoo

Chiffrement SSL (protocole HTTPS)

SSL encryption allows visitors to navigate a website over a secure connection, indicated by the https:// protocol at the beginning of a web address rather than the non-secure http:// protocol.

Odoo generates a separate SSL certificate for each domain mapped to a database using Let’s Encrypt’s certificate authority and ACME protocol.

Note

  • La génération du certificat peut prendre jusqu’à 24h.

  • Several attempts to validate your certificate are made over the next five days after you map your domain name to your database.

  • Si vous utilisez un autre service, vous pouvez continuer à l’utiliser ou simplement changer vers Odoo.

Important

Aucun certificat SSL n’est généré pour les domaines nus (noms de domaines sans sous-domaines ni préfixes).

URL de base web d’une base de données

Note

If the Website app is installed on your database, skip this section and continue from the Map a domain name to an Odoo website section.

L”URL de base web ou l’URL racine d’une base de données affecte l’adresse de votre site web principal et tous les liens envoyés à vos clients (par ex. devis, liens du portail, etc.).

Pour que votre nom de domaine personnalisé devienne l’URL de base de votre base de données, accédez à votre base de données en utilisant votre nom de domaine personnalisé et connectez-vous en tant qu’administrateur (un utilisateur faisant partie du groupe de droits d’accès Paramètres sous Administration).

Important

If you access your database using the original Odoo address (e.g., mycompany.odoo.com), the database’s web base URL will be updated accordingly. To prevent the automatic update of the web base URL when an administrator logs in to the database, activate the developer mode, go to Settings ‣ Technical ‣ System Parameters ‣ New, and enter web.base.url.freeze as the Key and True as the Value.

Note

You can also set the web base URL manually. To do so, activate the developer mode, go to Settings ‣ Technical ‣ System Parameters, and search for the web.base.url key (create it if necessary) and enter the full address of your website as the value (e.g., https://www.yourdomain.com). The URL must include the protocol https:// (or http://) and not end with a slash (/).

Mapper un nom de domaine avec un site web Odoo

Note

Le mappage de votre nom de domaine avec votre site web n’est pas la même chose que le mappage avec votre base de données :

  • It defines your domain name as the main one for your website, helping search engines index it correctly.

  • It defines your domain name as the base URL for your database, including portal links sent to your customers via email.

  • Si vous avez plusieurs sites web, il associe votre nom de domaine au site web approprié.

Go to Website ‣ Configuration ‣ Settings. If you have multiple websites, select the one you want to configure. In the Domain field, enter the URL of your website (e.g., https://www.yourdomain.com) and Save.

Avertissement

Le fait de mapper votre nom de domaine sur votre site Odoo empêche Google Search d’indexer l’adresse originale de votre base de données (par ex. mycompany.odoo.com).

If both addresses are already indexed, it may take some time for the indexation of the second address to be removed from Google Search. You can use the Google Search Console to fix the issue.

Subdomains

Adding a subdomain label to a domain name (e.g., subdomain.yourdomain.com) allows creating multiple websites with a single domain name. To do so:

  1. Add a CNAME record to forward your subdomain (e.g., subdomain.yourdomain.com) to the address of your Odoo database (e.g., mycompany.odoo.com).

  2. Map the subdomain to your Odoo database.

  3. Map the subdomain to your Odoo website.