ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

MSM - 2nd site front end is redirecting to 1st site index (consistently)

March 21, 2009 2:41pm

Subscribe [2]
  • #1 / Mar 21, 2009 2:41pm

    James Springer

    108 posts

    *I’m running the latest versions of EE and MSM*

    The install of MSM went fine. I created the second site, as well as set up a folder for it in the root dir of my site and copied the index.php and path.php from the root and placed them into the newly created directory. The path php looks like this:

    <?php
    
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "/system/";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    $site_name = 'pineview';
    $template_group = "";
    $template = "";
    $site_url = "";
    $site_index = "";
    $site_404 = "";
    $global_vars = array(); // This array must be associative
    
    ?>

    In the CP for the second site I updated the global template preferences, as well as the General Config. Settings are as follows:

    URL to the root directory of your site: http://pineviewcreative.com
    URL to your Control Panel index page: left this the same)
    URL to your “themes” folder: left this the same
    Theme Folder Path: left this the same

    I do have htaccess - But I’ve taken that out of the equation to no effect. I’ve also disabled all extensions - same thing. The second site keeps redirecting to the first site’s index. I shot an email off to EH to see if maybe this could be server side. 

    Does everything look alright?

  • #2 / Mar 21, 2009 2:56pm

    Greg Aker

    6022 posts

    Does the second site directory sit next to the site 1 index.php file?  If not, what is it?

  • #3 / Mar 21, 2009 3:05pm

    James Springer

    108 posts

    /public_html/
    /public_html/system
    /public_html/index.php
    /public_html/path.php
    /public_html/styles
    /public_html/themes
    /public_html/path.php
    /public_html/images
    /public_html/2nd site/index.php
    /public_html/2nd site/path.php

  • #4 / Mar 21, 2009 3:11pm

    Greg Aker

    6022 posts

    okay, for the 2nd site path.php file you need to set the system path to:

    $system_path = "../system/";

    -greg

  • #5 / Mar 21, 2009 3:39pm

    James Springer

    108 posts

    I set it to /www/eh#/public_htm/system/ (as well as everything else that makes logical sense)

    No dice.

    Thanks for the help so far though, Greg.

  • #6 / Mar 21, 2009 4:24pm

    Greg Aker

    6022 posts

    for the secondary site, add your site_url to path.php, eg:

    $site_url = 'http://example.com/';
  • #7 / Mar 24, 2009 4:03am

    James Springer

    108 posts

    Just a quick update on this (in case anyone runs into this in the future…)

    It turned out to be server side. The folks at EH got me squared away nicely. Greg, thanks again for your help! You may go ahead and shut this one down.

  • #8 / Mar 24, 2009 4:19am

    John Henry Donovan

    12339 posts

    Glad Greg was able to get you squared away James. Feel free to post again if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases