跳至内容
菜单
此问题已终结
2 回复
4524 查看

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 ?

形象
丢弃
编写者 最佳答案

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.

形象
丢弃

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"

最佳答案

@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

形象
丢弃

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

相关帖文 回复 查看 活动
0
3月 24
1152
2
3月 23
2305
1
3月 20
2083
3
6月 22
5666
0
6月 16
3783