We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12352
    • 101 Posts
    Hi, I have a website which has multiple domains.

    Example:
    domain.be is the primary domain
    domain.nl points to the same website and generates the same content as domain.be
    domain.fr points to the same website and generates the same content as domain.be

    If a visitor comes in through domain.be and he clicks a link, the domain suddenly changes to domain.nl or domain.fr, the domains keep changing when you click through the site. There’s no logic in this.

    If I look into Google analytics all these domains show up as referrals, because of the constant change.

    Is there a way to lock the domain once a visitor comes on the site?

    thanks!
      Don't believe anything you read on the net. Except this.
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: Hori76 at Jun 07, 2010, 04:37 PM

      Hi, I have a website which has multiple domains.

      Example:
      domain.be is the primary domain
      domain.nl points to the same website and generates the same content as domain.be
      domain.fr points to the same website and generates the same content as domain.be

      If a visitor comes in through domain.be and he clicks a link, the domain suddenly changes to domain.nl or domain.fr, the domains keep changing when you click through the site. There’s no logic in this.

      If I look into Google analytics all these domains show up as referrals, because of the constant change.

      Is there a way to lock the domain once a visitor comes on the site?

      thanks!
      Yes, do not cache the <base href="[(site_url)}" /> tag in your template( s ). Here are a couple of threads regarding how to get it with a simple snippet:

        • 12352
        • 101 Posts
        Great, thanks Jason!
          Don't believe anything you read on the net. Except this.