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.

masked control panel redirecting to the main site cp

September 07, 2011 8:57pm

Subscribe [3]
  • #1 / Sep 07, 2011 8:57pm

    Patrick Hvid

    62 posts

    Hi

    Have a problem where, when I try to access the CP for my secondary site, the browser gets automatically re-directed to the main cp.
    The sites (testing for now) are called
    http://test.hvid.se (main)
    http://test.hvid.nu (secondary)

    The changes I have made in the main site:
    index.php:

    $system_path = '/www/eh16504/test_system';
    
    $assign_to_config['site_name'] = 'test_hvid_se';
    $assign_to_config['cp_url'] = 'http://test.hvid.se/admin.php';
    $assign_to_config['site_url'] = 'http://test.hvid.se';

    admin.php:

    $system_path = '/www/eh16504/test_system';
    
    $assign_to_config['site_name'] = 'test_hvid_se';
    $assign_to_config['cp_url'] = 'http://test.hvid.se/admin.php';

    The changes in secondary site are similar:
    index.php:

    $system_path = '/www/eh16504/test_system';
    
    $assign_to_config['site_name'] = 'test_hvid_nu';
    $assign_to_config['cp_url'] = 'http://test.hvid.nu/admin.php';
    $assign_to_config['site_url'] = 'http://test.hvid.nu';

    admin.php:

    $system_path = '/www/eh16504/test_system';
    
    $assign_to_config['site_name'] = 'test_hvid_nu';
    $assign_to_config['cp_url'] = 'http://test.hvid.nu/admin.php';

    I have tried with and without .htacces
    I have tried to remove the CP path in config.php

    $config['cp_url'] = "";

    Where did I miss?

    (sites are hosted in the same account at engine hosting)

  • #2 / Sep 08, 2011 2:21pm

    Kevin Smith

    4784 posts

    Hi PaHvid,

    Are you using your Super Admin account to login? If not, are you certain the user has access to the secondary site?

    Just to confirm (since I want to make sure your signature’s versions are correct) what versions EE and MSM are you running?

  • #3 / Sep 08, 2011 2:35pm

    Patrick Hvid

    62 posts

    Hi Kevin

    It’s the superadmin I use (actually I don’t have any other at the moment) and the versions are 2.2.2 / 2.1.0 i I read my files correctly
    Brand new test-install since two weeks, with all new downloads..

    /patrick

  • #4 / Sep 09, 2011 4:59pm

    Kevin Smith

    4784 posts

    Be on the lookout for an email from me, Patrick. I’d like to see this first-hand and try to figure out what’s happening.

  • #5 / Sep 10, 2011 9:28am

    digigumball

    37 posts

    I’d love to know what the resolution was to this issue, as I’ve had the exact same issues , and I was hoping someone would send me an email and to see this first-hand and try to figure out what’s happening!  I’ve been stuck for several days and so close but no resolution yet.

    You can see my posts here and here

    I’d appreciate that someone that could see this first hand!  😉

  • #6 / Sep 12, 2011 4:49pm

    Kevin Smith

    4784 posts

    Hi digigumball,

    We’re still working privately to help solve this for Patrick, and we’ll post a resolution here when we have one. We’ll also continue to work with you in your thread; I don’t believe you are having the same issue since all Patrick’s MSM CP urls are redirecting to the same main CP while your main site URL is redirecting to the CP. Like I said, though, we’ll keep working with you in your thread to hunt those problems down.

  • #7 / Sep 12, 2011 10:22pm

    digigumball

    37 posts

    I’m happy to report that VIM Interactive took time out of his busy Saturday to take a closer look at my CP, index & admin.php files and suggest corrections that got my site online, and provided the correct configuration for vhosts for apache2 to boot!

    Thanks again VIM! 😊

  • #8 / Sep 13, 2011 1:47pm

    Patrick Hvid

    62 posts

    Hi

    Problem is now sorted!

    It was an error in a configuration file at enginehosting and had nothing to do with ee.
    Many thanks to Kevin who took valuable time to sort this for me, and also to the guys at enginehosting who fixed this in minutes after being reported.

    Wish digigumball the best of luck with his/her site since that also seems sorted

    /patrick

  • #9 / Sep 13, 2011 3:30pm

    Kevin Smith

    4784 posts

    Great! Looks like both of you found solutions! Best of luck on your sites. Closing this one up!

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

ExpressionEngine News!

#eecms, #events, #releases