Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4643 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ

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"

Câu trả lời hay nhất

@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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 24
1228
2
thg 3 23
2376
1
thg 3 20
2142
3
thg 6 22
5774
0
thg 6 16
3865