We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6488
    • 23 Posts
    I am attempting to do a multi-site with three top-level domains pointed at three different contexts.

    I have implemented this method of accomplishing this:
    http://www.belafontecode.com/modx-revolution-hosting-multiple-domains/

    If I browse to each of my domains, they come up fine. As long as FURL is off. If FURL is on, they all go to the first domain.

    The problem I have, is when I attempt to preview resources from the manager, they are always redirected to the "web" context, regardless of which context they are actually assigned to. For example, if I have "web", "context2", and "context3", and I create a resource in "context3", and attempt to preview it from the manager, the new tab opens up to the domain of the "web" context, and appends the resource name I am previewing to the url. Of course, I get a 404 on this.

    If I manually type the correct url into the address bar, this will work, but only if FURLs are off. If I put FURLs on, only my "web" domain will come up for anything.

    How do I fix this? I need the three domains and three contexts to work independently, and I need FURLs to work with the multi-domain approach?

    I have scoured this forum, and the manual, and I'm just not figuring this out. Please help me out.

    Thanks,

    -Dan [ed. note: danlanphear last edited this post 14 years, 11 months ago.]
      • 22303 MODX Staff
      • 10,725 Posts
      Make sure you have the site_url and base_url set for each and every context you create, including the web context.
        • 6488
        • 23 Posts
        I have already done this opengeek. Thanks for the idea though. Any other suggestions?
          • 3109 ☆ A M B ☆
          • 894 Posts
          Dan did you also include you base URL in your template?

          Something like this:

          
          <base href="[[++site_url]]" />
          
          


          In you head tag.
            Benjamin Marte
            Interactive Media Developer
            Follow Me on Twitter | Visit my site | Learn MODX