Hello @EddyZ I think it’s simpler to solve this at the domain / web server level rather than modifying the PHP config and trying to support two BX_DOL_URL_ROOT values there.
For both domains, you can set the A/AAAA DNS records to point to the same server IP address. @LeonidS can provide more details on this.
Dear @PavelS and @OneEagle already told the good thoughts about your task (thnx, guys!). But I would interested to know your goals certainly:
1) Do you want my-second-domain.com to automatically redirect to my-first-domain.com?" (A 301 Moved Permanently redirect is recommended for SEO.)
2) Or do you want both domains to show identical content, but keep the URL in the address bar the one the user initially visited?" (Please note that this approach creates duplicate content, which is generally harmful for SEO as it can dilute ranking signals and confuse search engines.)
E
@LeonidS Could you please help to look at this ticket? Thank you very much!
Hello @EddyZ I think it’s simpler to solve this at the domain / web server level rather than modifying the PHP config and trying to support two BX_DOL_URL_ROOT values there.
For both domains, you can set the A/AAAA DNS records to point to the same server IP address. @LeonidS can provide more details on this.
Hello @EddyZ,
As previously mentioned by @PavelS, DNS redirect would probably be the best solution.
Hello @EddyZ !
Dear @PavelS and @OneEagle already told the good thoughts about your task (thnx, guys!). But I would interested to know your goals certainly:
1) Do you want my-second-domain.com to automatically redirect to my-first-domain.com?" (A 301 Moved Permanently redirect is recommended for SEO.)
2) Or do you want both domains to show identical content, but keep the URL in the address bar the one the user initially visited?" (Please note that this approach creates duplicate content, which is generally harmful for SEO as it can dilute ranking signals and confuse search engines.)