If you sea that on the main page or some View links to the last posted articles points to wrong domain or subdomain (to domain with lowest weight parameter), than you need to add some code to multidomain.module in function custom_url_rewrite:

    // Match path by taxonomy
    if ( !page_match && $is_node ) {
      $taxonomy_match = true;
      $page_match = db_num_rows(db_query('SELECT tn.* FROM {term_node} tn WHERE tn.nid = %d AND tn.tid = %d', $arg[1], $info['tid'])) ? TRUE : FALSE;
      if ( !$page_match ) $taxonomy_match = false; // Taxonomy not match! We'll check it later once again
    }
// ...
      // Checking for node type ONLY if taxonomy_match is TRUE
      if (!$page_match && !empty($info['types']) && $is_node
           && $taxonomy_match
      ) {
        $node = node_load($arg[1]);
        $page_match = array_key_exists($node->type, $info['types']) && $info['types'][$node->type];
      }
CommentFileSizeAuthor
#1 multidomain-180500.txt1.08 KBwayland76

Comments

wayland76’s picture

StatusFileSize
new1.08 KB

That's not a patch. This is a patch (can you tell I'm from Australia?).

This patch is against the DRUPAL-5 branch of CVS. I think it's equivalent to yours (let me know if it's not). I'm not sure what this patch achieves, but I thought I'd at least format it properly.

wayland76’s picture

Status: Needs review » Closed (won't fix)

The logic here makes no sense to me. Unless someone can explain under which circumstances you would arrive inside the second if statement, we shouldn't fix it.