欢迎!

分享和讨论最佳内容和新营销理念,打造专业形象,共同成为更好的营销人员。

注册

此問題已被標幟
1 回覆
1014 瀏覽次數

Dear everyone, so far, I have been using dbfilter as a subdomain filter, and it works great (odoo.domain.com, odoo2.domain.com)

Now I want to use it as the primary domain (domain.com, www.domain.com)

To this end, I changed the database name from odoo to domain com, and changed d to h

頭像
捨棄
作者

- %h indeed addresses the full hostname (www.domain.com -> www-domain-com, odoo.domain.com -> odoo-domain-com)

- %d addresses subdomains only, except for the www subdomain, which is stripped.

So use %d www.domain.com to get the domain, but odoo.domain.com gets odoo

As we can see above, www is filtered out, but the filtered www gives us the middle part of our domain name. Therefore, when we create the database, we can just use the middle part of the domain name.

頭像
捨棄