{"id":674,"date":"2023-04-24T09:09:28","date_gmt":"2023-04-24T09:09:28","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/04\/24\/7733038-how-to-point-a-domain-to-odoo-at-hostinger\/"},"modified":"2026-03-16T12:12:03","modified_gmt":"2026-03-16T12:12:03","slug":"7733038-how-to-point-a-domain-to-odoo-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/7733038-how-to-point-a-domain-to-odoo-at-hostinger\/","title":{"rendered":"How to Point a Domain to Odoo at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">To point your domain to Odoo, follow the steps below &#128071; <\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_209c96e2b6\">Step 1 &ndash; Create a Domain Redirect<\/h2><h3 id=\"h_a3ae91c7db\">With a Hosting Plan at Hostinger<\/h3><p class=\"no-margin\">If you have a hosting plan at Hostinger, <b><a href=\"\/support\/1583214-how-to-add-a-website\" target=\"_blank\" class=\"intercom-content-link\">add the domain<\/a><\/b> to your hosting plan. You can skip the onboarding process and create an empty website.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Next, <b><a href=\"\/support\/1583307-how-to-create-an-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">create an .htaccess file<\/a> <\/b>in the <b>public_html <\/b>folder of the domain<b> <\/b>and add the following code:<\/p><p class=\"no-margin\">\n<\/p><pre><code>RewriteEngine On<br>RewriteCond %{HTTPS} off [OR]<br>RewriteCond %{HTTP_HOST} !^www. [NC]<br>RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC]<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Make sure to <b>save the changes<\/b>.<\/p><p class=\"no-margin\">\n<\/p><h3 id=\"h_ae86acd8ec\">Without a hosting plan at Hostinger<\/h3><p class=\"no-margin\">If you only have a domain (not a hosting plan), you can create the redirect with the help of <b>Cloudflare<\/b>: <b><a href=\"\/support\/3212384-how-to-redirect-a-domain-without-a-hosting-plan\" target=\"_blank\" class=\"intercom-content-link\">How to Redirect a Domain Without a Hosting Plan<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_05a192312b\">Step 2 &ndash; Create the CNAME Record<\/h2><p class=\"no-margin\">Access your domain&rsquo;s <b>DNS zone<\/b> and delete any existing <b><a href=\"\/support\/4468886-how-to-add-and-remove-a-records-in-hpanel\" target=\"_blank\" class=\"intercom-content-link\">A records<\/a><\/b>. Then, create the following <b><a href=\"\/support\/4738777-how-to-manage-cname-records-on-hpanel\" target=\"_blank\" class=\"intercom-content-link\">CNAME record<\/a><\/b>:<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e8e8e880;border-color: #73737633\">\n<p class=\"no-margin\"><b>Host<\/b>: www<\/p>\n<p class=\"no-margin\"><b>Points to<\/b>: <i>database<\/i>.odoo.com<\/p>\n<p class=\"no-margin\"><b>TTL<\/b>: use the default value, e.g., 14400<\/p>\n<\/div><p class=\"no-margin\">Make sure to replace <i><code>database<\/code><\/i> with the name of your Odoo database:<\/p><ul>\n<li>\n<p class=\"no-margin\">For <b>Odoo Online<\/b>, it is the current address of your database; you can check it in the <b>My databases<\/b> section of your Odoo account<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">For <b>Odoo.sh<\/b>, go to <b>Settings<\/b> &rarr; <b>Project Name<\/b> in your Odoo account to find the name of the main address<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\"><b>NOTE<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">If you used the <b><a href=\"\/support\/7733990-how-to-point-a-domain-to-systeme-io#h_3c176222e1\" target=\"_blank\" class=\"intercom-content-link\">second option in Step 1<\/a><\/b>, your domain&rsquo;s <b>DNS zone<\/b> should be <b><a href=\"\/support\/4410549-how-to-manage-dns-zone-at-cloudflare\" target=\"_blank\" class=\"intercom-content-link\">managed from Cloudflare<\/a><\/b>; i.e., you need to create these CNAME records in Cloudflare<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">Once you add the new DNS records, <b>wait for <a href=\"\/support\/4146975-what-is-dns-propagation\" target=\"_blank\" class=\"intercom-content-link\">propagation<\/a> to complete<\/b> (up to 24 hours), and your domain will start pointing to <b>Odoo<\/b> &#128522;<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_fb9607213d\">Step 3 &ndash; Map Your Domain With Your Database<\/h2><p class=\"no-margin\">The steps depend on the type of your service:<\/p><ul>\n<li>\n<p class=\"no-margin\">For <b>Odoo online<\/b>: go to your <b>database manager<\/b>, click on <b>Settings<\/b> &rarr; <b>Domain names<\/b> &rarr; <b>Use my own domain<\/b>; enter your domain name, click on <b>Verify<\/b>, and, finally, click on <b>I confirm, it&rsquo;s done<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">For <b>Odoo.sh<\/b>: go to <b>Branches <\/b>&rarr;<b> <\/b>select your branch &rarr; Settings &rarr; <b>Custom domains<\/b>;<b> <\/b>enter your domain name, and, finally, click on <b>Add domain<\/b><\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">\n<\/p><h2 id=\"h_2927f4472e\">Step 4 &ndash; Update the Database Root URL<\/h2><p class=\"no-margin\">Activate the <b>developer mode <\/b>on your Odoo account, then go to <b>Settings<\/b> &rarr; <b>Technical<\/b> &rarr; <b>System Parameters<\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Find the <b>web.base.url<\/b> key, or create it if it does not exist, and enter your domain name in the following format:<\/p><p class=\"no-margin\">\n<\/p><pre><code>https:\/\/www.domain.tld<\/code><\/pre><p class=\"no-margin\">Make sure to include the protocol (HTTPS) and remove any slash at the end (\/).<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once your database root URL is updated, create the following <b>system parameter <\/b>to prevent it from reverting automatically:<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>Key<\/b>: web.base.url.freeze<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Value<\/b>: True<\/p>\n<\/li>\n<\/ul><h2 id=\"h_86f3393039\">Step 5 &ndash; Map your Domain With your Website<\/h2><p class=\"no-margin\">On your Odoo account, go to <b>Website<\/b> &rarr; <b>Configuration<\/b> &rarr; <b>Settings<\/b> &rarr; <b>Website Info <\/b>and select the desired website. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once there, enter your domain name in the <b>Domain<\/b> field with the following format:<\/p><p class=\"no-margin\">\n<\/p><pre><code>https:\/\/www.domain.tld<\/code><\/pre><p class=\"no-margin\">And click on <b>Save<\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">That&rsquo;s it! Now you know how to point your domain to <b>Odoo<\/b> &#128522;<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>Additional Resources<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a href=\"https:\/\/www.odoo.com\/documentation\/16.0\/administration\/maintain\/domain_names.html#configure-your-existing-domain-name\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Configure your existing domain name &mdash; Odoo<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">If you encounter any issues with pointing your domain, please get in touch with <b><a href=\"https:\/\/www.odoo.com\/help\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Odoo support<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Pointing a domain to Odoo through Hostinger<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[174],"tags":[],"class_list":["post-674","post","type-post","status-publish","format-standard","hentry","category-pointing-domain-to-external-services"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/7733038-how-to-point-a-domain-to-odoo-at-hostinger\/","default":1},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/7733038-comment-faire-pointer-un-domaine-vers-odoo-chez-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=674"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/674\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}