Jump to content

Multisite child page url doesn't work


nexuspolaris
 Share

Recommended Posts

Hello!

I build a website with two different domains connected to the website by Multisite modul. This is my config.php multisite settings:

<?php
$config->MultisiteDomains = array(
  "dev.regiosite.com" => array(
          "root" => "regiosite",
          "http404" => 27
      ),
  "dev.origisite.com" => array(
          "root" => "origisite",
          "http404" => 27
      )
);
?>

This is the page structure:

Web (web.regiosite.com)
-Regiosite (dev.regiosite.com)
--About us
--404
-Origosite (dev.origosite.com)
--About us
--404

The navigation loop:

<?php
$siteRoot = $page->rootParent;

 foreach ($siteRoot->children as $child) {
	echo "<li><a href='$child->url'>$child->title</a></li>";
 }
?>

When I click on the child page's name (About us) in the menu the url is right in the browser (http://dev.regiosite.com/about-us) but doesn't load the child page's content.

This way works: http://web.regiosite.com/regiosite/about-us

What am I missing? Or I need to change something in the .htaccess?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...