Hoping someone can help ... I have installed the latest Multi-site manager for EE2+, set up a site and updated admin.php & index.php files as stated in the instructions.
However, when I go to visit http://site2.com.au I get instantly redirected to http://site1.com.au and I can't work out why?
Full details of install are outlined below:
Installed MSN, uploaded files (3) to appropriate folders in site1. Activated/turned on MSN.
Changed sites from site1 to site2 via top right site drop-down. Updated root url to site2.com.au and created default template with temporary text in design>templates etc.
After adding site2 as a stand alone site (reseller hosting account) without success & speaking in detail with my host e2, they had this to say:
"It seems that domain2 account cannot access the other account's path since they are separate cpanel accounts. I would suggest you to try creating domain2 as addon domain under the domain1 for creating multisite"
So I deleted the stand alone hosted account for site2 and added it as an 'Add on domain' via site1 cPanel.
This created the following folder structure:
/home/
> short_name/
>> public_html/
--- system
--- themes
--- admin.php
--- index.php
>>> site2.com.au
---- admin.php
---- index.php
By adding site2 as an add on domain it created a folder in the root directory of site1.
I copied index.php & admin.php from site1 root and edited them with the following info:
index.php (full server path)
$system_path = '/home/short_name/public_html/system/';
Also tried (relative?)
$system_path = '../system/';
And
$assign_to_config['site_name'] = 'site_2';
$assign_to_config['cp_url'] = 'http://site2.com.au/admin.php';
$assign_to_config['site_url'] = 'http://site2.com.au';
admin.php is pretty much the same apart from the site_url is not there.
However, when trying to access http://site2.com.au & /admin.php I get instantly redirected to http://site1.com.au & /admin.php
A very odd thing is if I visit http://site1.com.au/site2.com.au I can see the temporary text I added for site2 default template so it would appear that MSM is working but not redirecting/displaying the URL correctly?
I completed all the steps till the end of "Setup Domains and Sub-domains" but didn't go any further than a quick read over as the rest of the steps seemed to refer to shared channels & files etc.
I am hoping it is a smile fix & appreciate any help anyone can offer.
Thanks, Dan