From 970ffdda43ef47751f66a16d092783a829435e2e Mon Sep 17 00:00:00 2001 From: XPL Date: Thu, 28 Mar 2024 11:35:12 +0100 Subject: [PATCH] [IMP] website: domain names CNAME records Clarify that it is required to create a redirection from the naked domain to the www. subdomain closes odoo/documentation#8440 X-original-commit: 363d0a582f4b449e313aef2249bcf13615dcd624 Signed-off-by: Xavier Platteau (xpl) --- .../website/configuration/domain_names.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/content/applications/websites/website/configuration/domain_names.rst b/content/applications/websites/website/configuration/domain_names.rst index c9a25a8bd..b9dd84494 100644 --- a/content/applications/websites/website/configuration/domain_names.rst +++ b/content/applications/websites/website/configuration/domain_names.rst @@ -149,8 +149,7 @@ If you already have a domain name, you can use it for your Odoo website. Add a CNAME record ------------------ -Creating a CNAME record to forward your domain name to the address of your Odoo database is -required. +Adding a CNAME record to forward your domain name to the address of your Odoo database is required. .. tabs:: @@ -161,7 +160,7 @@ required. .. group-tab:: Odoo.sh - The CNAME record's target address can be the project's main address, which can be found on + The CNAME record's target address should be the project's main address, which can be found on Odoo.sh by going to :menuselection:`Settings --> Project Name`, or a specific branch (production, staging or development) by going to :menuselection:`Branches --> select the branch --> Settings --> Custom domains`, and clicking :guilabel:`How to set up my domain?`. A @@ -176,17 +175,18 @@ The specific instructions depend on your DNS hosting service. - `Cloudflare: Manage DNS records `_ -Creating a CNAME record to map the `www` subdomain (`www.yourdomain.com`) as some visitors are used -to typing `www.` before entering a domain name. +.. important:: + Odoo only supports subdomains. To use your naked domain name :dfn:`(a domain name without any + subdomains or prefixes)` (`yourdomain.com`), create a redirection 301 to redirect visitors to + `www.yourdomain.com`. .. example:: You own the domain name `yourdomain.com`, and your Odoo Online database's address is `mycompany.odoo.com`. You want to access your Odoo database primarily with the domain - `www.yourdomain.com` but also with the naked domain :dfn:`(a domain name without any subdomains - or prefixes)` `yourdomain.com`. + `www.yourdomain.com` and also with the naked domain `yourdomain.com`. - To do so, create a CNAME record for the `www` subdomain, with `mycompany.odoo.com` as the - target. Next, create a redirect (301 permanent or visible redirect) to redirect visitors from + To do so, create a CNAME record for the `www` subdomain, with `mycompany.odoo.com` as the target. + Next, create a redirect (301 permanent or visible redirect) to redirect visitors from `yourdomain.com` to `wwww.yourdomain.com`. .. _domain-name/db-map: