It sounds as if you might have saved your admin.php file over your index.php. You may need to grab a new index.php file from default install files.
Not a chance! I know these files and have been very careful with my edits. Something else is going on.
I am switching between 2 different directory structures seen below and changing cp_url parameter in CP and both the index &admin; php files to see if I can fix this…
VERS 1 Original as the ee docs suggest:
Library/Webserver/Documents (root directory), this is the path to domain1.com:
└── domain1
├── admin.php
├── index.php
├── images
├── system
└── themes
└── domain2
└── index.php
└── domain3
└── index.php
Index.php only changed & uncommented variables are: (copied into both domain1 & 2 folders)
$system_path = ‘./system’ ;
AND MSM variables
$assign_to_config[‘site_name’] = ‘default_site’;
$assign_to_config[‘cp_url’] = ‘http://domain1.com/domain1/admin.php’;
$assign_to_config[‘site_url’] = ‘http://domain1.com’;
VERS 2 Current
Library/Webserver/Documents (root directory), this way the path to admin.php & index.php is in the root directory:
└── Document (webroot)
├── admin.php
├── index.php
└── domain1
├── index.php
├── images
├── system
└── themes
└── domain2
└── index.php
└── domain3
└── index.php
System relative path -no change: $system_path = ‘./system’ ;
but I did change the MSM variables by deleting the 2nd doman1 in the cp_url path since the location of admin.php has changed:
$assign_to_config[‘site_name’] = ‘default_site’;
$assign_to_config[‘cp_url’] = ‘http://domain1.com/admin.php’;
$assign_to_config[‘site_url’] = ‘http://domain1.com’;
Again, now the CP is fine and switching between all 3 domains, I just do not see the domain1 site.
Any thoughts?