·
Added a discussion

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

image_transcoder.php?o=sys_images_editor&h=2961&dpx=1&t=1764942203

they can point to the same server .

image_transcoder.php?o=sys_images_editor&h=2960&dpx=1&t=1764941872

Thanks!

  • 55
Comments
    • @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.)

            Login or Join to comment.