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 duplicated site only showing homepage template

April 25, 2011 4:59pm

Subscribe [2]
  • #1 / Apr 25, 2011 4:59pm

    KMDG

    60 posts

    I set up an ExpressionEngine site that is working fine, and then installed the Multiple Site Manager module. I duplicated the original site and set it up on a subdomain. The homepage shows up fine, but none of the other pages will show up properly. The URL changes, but they all just use the homepage template. All of my templates are there, and I don’t see any reason why they shouldn’t work. I also did some extensive research on the forums, user guide and google without much luck.

    Here’s the live site: http://www.brijot.com
    Here’s the staging site I set up (site #2, duplicate of live site): http://staging.brijot.com

    Below is a sample of my company template (company/index)

    {embed="home/header"}
    
    {sub_navigation}
    
    <div class="content">
        <div class="wrapper">
        {!--landing page--}
        {if segment_2 == ""}
        {exp:channel:entries channel="pages" status="open|exclude" category="34" limit="1"}
            <div class="left">
                <h1>{title}</h1>
                {pages_copy}
            {/exp:channel:entries}     
            </div><!--left-->
          <div class="right">
            {contact_sfdc_company}
            </div><!--right-->
            {/exp:channel:entries}
        
        {!--sub-pages--}
        {if:else}
            {exp:channel:entries channel="company" status="open|exclude"}
            <div class="left">
                <h1>{title}</h1>
                {company_body}
            {/exp:channel:entries}
            
            {if segment_2 == "contact"}{contact_sfdc_company}{/if}
            {if segment_2 == "support"}{contact_support}{/if}
            {if segment_2 == "site-map"}{site-map}{/if}
            </div><!--left-->
          <div class="right">
        {exp:channel:entries channel="company" status="open|exclude"}
            {if segment_2 == "leadership" OR segment_2 == "board-of-directors" OR segment_2 == "careers" OR segment_2 == "contact" OR segment_2 == "support"}
            {company_right}
            {if:elseif segment_2 == "partners"}
            {company_right}
            {contact_sfdc_partners}
            {if:else}
            {company_right}
            {contact_sfdc_company}
            {/if}
            {/exp:channel:entries}
            </div><!--right-->
            <div class="clear"></div>
        </div><!--wrapper-->
    </div><!--content-->
    
    {embed="home/footer"}

    What am I doing wrong? Do the url segments change for subdomains?

  • #2 / Apr 25, 2011 5:22pm

    KMDG

    60 posts

    I just tried creating a new template called testing in my default template group. I just put some copy in there and tried to load the template from the browser: http://staging.brijot.com/testing ... still loading the homepage. I can’t imagine this is a problem with my individual templates. Perhaps it there a setting or something?

    Here are the areas that I modified on staging/index.php

    /*
     * --------------------------------------------------------------------
     *  SYSTEM PATH
     * --------------------------------------------------------------------
     *
     * The following variable contains the server path to your
     * ExpressionEngine "system" folder.  By default the folder is named
     * "system" but it can be renamed for increased security.  If you
     * have changed the name of the system folder please indicate the
     * new name here, and include the server path.  The path can be a
     * simple relative path or it can be a full server path.
     * 
     */
        $system_path = '../system';
    /**
     * If you are running the Multiple Site Manager, uncomment and assign the following variables 
     * See <a href="http://ellislab.com/expressionengine/user-guide/cp/sites/domainsetup.html">http://ellislab.com/expressionengine/user-guide/cp/sites/domainsetup.html</a>
     */
        $assign_to_config['site_name'] = 'staging';
    //    $assign_to_config['cp_url'] = '';
    //    $assign_to_config['site_url'] = 'http://staging.brijot.com';

    I hide the site_url configuration because that didn’t seem to help, and it was breaking my layout. I’ll probably specify this later, but I’ll have to go through all of my templates and re-adjust.

  • #3 / Apr 25, 2011 5:27pm

    KMDG

    60 posts

    OK, I feel like a ninny now, especially because I’ve been working on this like all day 😛

    I finally figured out the problem. Sometimes it helps me to document my thought process. Hopefully this will help someone else, especially because this is not something that EE supports.

    Basically, I had to copy my .htaccess file into the staging directory that had all of the url re-writes to remove index.php out of the url. I confirmed this by first typing index.php in the url, and when my pages were showing up with that, I knew that was the issue. Sure enough, I placed up my htaccess and now everything is working fine… although I need to change some of the ID# to get the right content to show up… but that’s another story.

    You can mark this as resolved! Thanks!

  • #4 / Apr 26, 2011 4:34am

    John Henry Donovan

    12339 posts

    Great stuff:) Thanks for the update. Feel free to start a new thread if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases