Jump to content

mleu

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by mleu

  1. Thanks for your immediate response.

    I uploaded the Multisite module to the /site/modules/ directory and added this to /site/config.php:

    <?
    $config->MultisiteDomains = array(
        "domain1.ab" => array(
                "root" => "domain1.ab",
                "http404" => 1025
            )
        "domain2.cd" => array(
                "root" => "domain2.cd",
                "http404" => 1026
            )
        "domain3.ef" => array(
                "root" => "domain3.ef",
                "http404" => 27
            ),
    
    );
    
    $config->httpHosts = array_keys($config->MultisiteDomains);
    ?>

    The respective root pages are configured with standard PW home template. Page structure is:

    • ROOT (template: home, status: published/hidden)
      • domain1.ab (template: home, status: published/hidden)
        • Test page (template: basic-page)
        • 404 (template: basic-page, id: 1025)
      • domain2.cd (template: home, status: published/hidden)
        • 404 (template: basic-page)
      • domain3.ef (template: home, status: published/hidden)
        • 404 (template: basic-page)
      • SHARED_DATA (status: hidden)
      • 404 (id: 27)
      • Admin
      • Trash

    domain3.ef is the original domain. Now every of the domains point to ROOT page. In case of unpublished ROOT page obviously a 404 error occurs.

  2. On 11/19/2012 at 3:26 PM, arjen said:

    Currently I'm trying to get this to work, but I'm seriously questioning if I'm using this right. What I initially thought that had to do the following steps:

    1) Make sure all the traffic from www.seconddomain.com points to the home directory of the www.maindomain.com. (checked)

    2) Install the module and make sure that www.seconddomain.com is added to the textarea. (checked)

    3) Create a new page with the template 'home' with the title matching the domain - in this case www.seconddomain.com. Status of the page is published and hidden. (checked)

    Then I thought I have to add another page to make this work:

    4) Create a page with a template underneath the 'second' homepage called 'Testpage'. Status of the page is published.

    I can reach the page using the following URL:

    http://www.maindomain.com/www.seconddomain.com/testpage/
     

    But I can't reach the page using this URL:

    http://www.seconddomain.com/testpage/
     

    Things I've noticed

    1. When I try to reach www.seconddomain.com it displays a 404 error.

    2. The other items (like the primary navigation) on rootlevel are changed to www.seconddomain.com.

    Thinking

    Then I starting thinking (just about then ;) ): is this supposed to work like this?

    The idea

    I got a very simple site with three pages and the client really liked to the idea to create some landing pages using other domains but using the same structure. Hence I thought apeisa's Multisite could be used here.

    Many thanks for any thoughts!

    Unfortunately I’ve got the same problem as Arjen. Can’t see the solution for that here. What do I have to do? Thank you in advance.

×
×
  • Create New...