Skip to Content
Menu
This question has been flagged
2 Replies
4417 Views

I am using Odoo 13 CE wherein I have multi company configured along with multi-websites (different domain each website). I have setup the appropriate domain per company (website) in settings.

However, when i enter the second domain i end up on the website of the first company. The only way i can even access the second website is if i login as admin & switch the company in the odoo header tab (both websites are 'published'). I also have a Lets Encrypt SSL installed. The DNS is properly configured to direct to the IP address & not just a redirection to first site.

Any clue on what i failed to configure correctly ?

Avatar
Discard
Author Best Answer

I managed to solve this by simply adding  "www."  before the domain name in the second website settings : )

Previously: example.com

Now: www.example.com

Question may be closed, thank you.

Avatar
Discard

Do you know something?

I spent 1 month trying to solve this from SSH and Odoo configurations.
I thought its an V-Host issue or Odoo Config Issue.

Even I opened GitHub ticket for Bitnami Server.

Once I saw your reply, I thought its a joke, than I checked my other domain I found its starting with WWW. while I configured my SLL to redirect to None-WWW.

Once I removed the WWW the issue solved just in second!!!.

So I think its Redirect rule issue with the SSL.

I love to tell you from my deep Heart: "Thank you So Much for this Awesome Hint"

Best Answer

@James Please how did you get the 2 domains working. Do you need to config redirects or something like that, i am confused on that

Avatar
Discard

If you set your SSL to redirect from WWW to Non-WWW you need to keep the domains in Odoo as https://domain.com

If you Redirect from Non-WWW to WWW you need to keep your domain as www.domain.com

This was my case in Bitnami Server using Apache , and Im not sure what about Nginx.

Good Luck

Related Posts Replies Views Activity
0
Mar 24
1029
2
Mar 23
2182
1
Mar 20
1999
3
Jun 22
5528
0
Jun 16
3671