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.

Correct root directory cannot be set... path variable doesn't work

February 23, 2012 5:59am

Subscribe [0]
  • #1 / Feb 23, 2012 5:59am

    sdowns

    4 posts

    In general configuration, I’ve listed the URL of my testing URL as the root directory of the site. However, whenever I try to use the path variable, or link to stylesheets (i.e. {stylesheet='template_group/css_template'} ), the real URL for the site is passed, not the testing server. Obviously, these paths do not work, and so I can’t get my CSS working, and internal links do not work either.

    My site is set up using Multiple Site Manager. Is there anywhere outside of Control Panel > General Configuration that I could set the root directory to get this working properly?

    Thanks

  • #2 / Feb 23, 2012 11:05pm

    Kevin Smith

    4784 posts

    Hi sdowns,

    Since you’re using MSM, let me ask this: When you’re setting the “URL to the root directory of your site”, are you ensuring that you’re setting it for the right MSM site? I know this seems basic, but it’s an easy, frequent miss. Is it working correctly on any of your MSM sites?

  • #3 / Feb 24, 2012 12:22am

    sdowns

    4 posts

    Yeah I’ve double check all of that. There are two sites being run through this control panel. The other site works fine - it was the original. I was able to change the root directory to that site when I made the transition from testing -> real URL. This site was just set up, and hasn’t been working.

  • #4 / Feb 24, 2012 6:08pm

    Sean C. Smith

    3818 posts

    sdowns,

    In your index.php around line 43 you should see the following. Please uncomment it and ensure that you have the correct values there:

    $assign_to_config['site_name']  = 'site_2_name';
     $assign_to_config['cp_url'] = 'http://domain2.com/admin.php';
     $assign_to_config['site_url'] = 'http://domain.2.com/';

    let me know if the problem persists after doing this.

    Sean

  • #5 / Feb 25, 2012 1:38am

    sdowns

    4 posts

    Yup that’s where the problem was! Should have figured that out on my own…

  • #6 / Feb 26, 2012 1:18pm

    Sean C. Smith

    3818 posts

    sdowns,

    Glad I could help. We all make these simple mistakes, don’t’ worry about it. I’m going to close out this thread, but feel free to post again when you have more questions.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases