How to configure the site to support 2 domains ?
How to configure the site to support 2 domains ?
We need to map two domain names to the server simultaneously. How can we achieve this?
For example:
When visiting the following 2 domains
they can point to the same server .
Thanks!
-
- · EddyZ
- ·
@LeonidS Could you please help to look at this ticket? Thank you very much!
-
- · PavelS
- ·
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.
-
-
-
·
LeonidS
- ·
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.)
-
·
LeonidS