Nume de domeniu

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. Căutați numele de domeniu dorit și verificați disponibilitatea acestuia.

  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.

Termeni și condiții

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.

  • Oferta este disponibilă numai pentru bazele de date 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.

Înregistrări 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.

Sfat

  • A: înregistrarea A deține adresa IP a domeniului. Este creat automat și **nu poate fi editat sau șters.

  • 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: Înregistrările MX indică serverelor unde să livreze e-mailurile.

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

Orice modificare a înregistrărilor DNS poate dura până la 72 de ore pentru a se propaga în întreaga lume pe toate serverele.

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.

Notă

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.

Cutie poștală

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

Utilizați un subdomeniu

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.

Utilizați un furnizor de e-mail extern

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.

În timpul procesului de înregistrare, selectați Configurare folosind domeniul existent când vi se cere Alegeți o modalitate de configurare a contului și introduceți domeniul (ex: yourdomain.com) când vi se cere Care este domeniul afacerii dvs.?.

Verificarea deținerii domeniului
  1. Autentificați-vă în Google Workspace. Când vi se cere să verificați deținerea domeniului, apăsați Comută la verificare manuală.

    Comutarea la verificarea manuală a domeniului în Google Workspace
  2. Selectați gandi.net ca Gazdă domeniu și apăsați Continuă.

    Selectarea gazdei domeniului în Google Workspace
  3. Copiați conținutul câmpului Valoare de sub Înregistrare TXT. Lăsați fereastra deschisă.

    Copierea valorii TXT în 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. Introduceți @ în câmpul Nume, lipiți Valoarea furnizată de Google în câmpul Conținut și apăsați Adaugă înregistrare.

    Crearea unei înregistrări TXT pentru verificarea deținerii domeniului
  5. Reveniți la Google Workspace, bifați căsuța de jos și apăsați Confirmă.

Redirecționați emailurile către 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. Introduceți @ în câmpul Nume, 1 în câmpul Prioritate, smtp.google.com. în câmpul Conținut și apăsați Adaugă înregistrare.

    Crearea unei înregistrări MX pentru redirecționarea emailurilor către Gmail
  6. Deschideți Google Workspace Admin console, apăsați Activează Gmail pentru domeniul dvs. și urmați pașii.

Configurați un nume de domeniu existent

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

Atenționare

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.

Adăugați o înregistrare CNAME

Este necesară adăugarea unei înregistrări CNAME pentru a redirecționa numele de domeniu la adresa bazei de date Odoo.

Adresa țintă a înregistrării CNAME ar trebui să fie adresa bazei de date, așa cum a fost definită la crearea acesteia (de exemplu, „compania mea.odoo.com”).

Instrucțiunile specifice depind de serviciul dvs. de găzduire DNS.

Redirecționați un domeniu fără prefix

Notă

Deși este opțional, se recomandă parcurgerea acestui pas.

Pentru a permite vizitatorilor să folosească domeniul fără prefix (un domeniu fără subdomenii sau prefixe) (yourdomain.com), este necesară crearea unei redirecționări 301 (o redirecționare permanentă de la un URL la altul) către www.yourdomain.com:

  • de la http://yourdomain.com la https://www.yourdomain.com, și

  • de la https://yourdomain.com la 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.

Utilizarea Cloudflare pentru securizarea și redirecționarea unui domeniu fără prefix

  1. Creați un cont și autentificați-vă în Cloudflare.

  2. Introduceți numele domeniului pe dashboard-ul Cloudflare și selectați Scanare rapidă pentru înregistrări DNS.

  3. Alegeți un plan (planul gratuit este suficient).

  4. Urmați instrucțiunile și recomandările Cloudflare pentru a finaliza activarea.

  5. Adăugați o înregistrare CNAME pentru a redirecționa domeniul fără prefix (yourdomain.com) către subdomeniul www (ex: www.yourdomain.com) apăsând DNS în meniul de navigare, apoi apăsând butonul Adaugă înregistrare și folosind următoarea configurație:

    • 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).

    • Faceți clic pe Salvați.

    Adăugarea unei înregistrări DNS CNAME în Cloudflare pentru a redirecționa un domeniu fără prefix către un subdomeniu www
  6. Adăugați o a doua înregistrare CNAME pentru a redirecționa subdomeniul www (ex: www.yourdomain.com) către adresa bazei de date (ex: mycompany.odoo.com) folosind următoarea configurație:

    • 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).

    • Faceți clic pe Salvați.

    Adăugarea unei înregistrări DNS CNAME în Cloudflare pentru a redirecționa un subdomeniu www către o bază de date 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:

    • Introduceți orice Nume regulă.

    • În secțiunea Dacă cererile primite corespund…, selectați Expresie de filtrare personalizată și folosiți următoarea configurație:

      • Field: select Hostname.

      • Operator: select equals.

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

    • În secțiunea Apoi…, folosiți următoarea configurație:

      • 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.

    Definirea unei reguli de redirecționare Cloudflare pentru a crea o redirecționare permanentă (301)
  8. Go to SSL/TLS ‣ Overview ‣ Configure and ensure the encryption mode is set to Full.

    Setarea modului de criptare la complet în Cloudflare

Mapați un nume de domeniu într-o bază de date Odoo

Atenționare

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.

Maparea unui nume de domeniu la o bază de date Odoo Online

Criptare SSL (protocol 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.

Notă

  • Generarea certificatului poate dura până la 24 de ore.

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

  • Dacă utilizați un alt serviciu, îl puteți utiliza în continuare sau îl puteți schimba pe cel Odoo.

Important

Nu este generat niciun certificat SSL pentru domeniile necompletate (nume de domenii fără subdomenii sau prefixe).

URL-ul de bază al bazei de date web

Notă

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.

Adresa URL de bază web sau URL-ul rădăcină a unei baze de date afectează adresa principală a site-ului dvs. web și toate linkurile trimise clienților dvs. (de exemplu, cotații, link-uri portal etc.).

Pentru a face numele dvs. de domeniu personalizat adresa URL de bază web a bazei de date, accesați baza de date folosind numele dvs. de domeniu personalizat și conectați-vă ca administrator (o parte de utilizator din grupul de drepturi de acces Setări din Administrare).

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.

Notă

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 (/).

Mapați un nume de domeniu pe un site web Odoo

Notă

Maparea numelui de domeniu pe site-ul dvs. web este diferită de maparea acestuia la baza de date:

  • 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.

  • Dacă aveți mai multe site-uri web, acesta mapează numele dvs. de domeniu la site-ul web corespunzător.

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.

Atenționare

Maparea numelui dvs. de domeniu pe site-ul dvs. Odoo împiedică Căutarea Google să indexeze adresa inițială a bazei de date (de exemplu, „compania mea.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.