Hello, I hope somebody can help me out with this as it is probably quite simple.
I have Expression Engine installed with MSM.
I have a site with 2 sub-domains
http://www.mysite.com
subdomain1.mysite.com
subdomain2.mysite.com
I have created the sub-domains in CPanel and can access the live websites if I place an index.html file in the root of each sub-domain directory. Therefore I know the sub domains are working, as they are serving web pages.
I have added the path.php and index.php files to each sub-domain folder. See example below:
<?php
// ------------------------------------------------------
// DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
// ------------------------------------------------------
// Path to the directory containing your backend files
$system_path = "../system/";
// ------------------------------------------------------
// MANUALLY CONFIGURABLE VARIABLES
// See user guide for more information
// ------------------------------------------------------
$template_group = "";
$short_name = "subDomianShortName";
$template = "";
$site_url = "http://subdomain1.mysite.com/";
$site_index = "";
$site_404 = "";
$global_vars = array(); // This array must be associative
?>
I have gone into the sytem preferences in the control panel for the subdomain and set the following:
URL to the root directory of your site
http://subdomain1.mysite.com/
I can view the Rendered Template when I click the [View Rendered Template] button in the Control Panel, for the default site. However when I try it for the sites using sub-domains I get the following message:
To proceed to the URL you have requested, click the link below:
<a href="http://subdomain1.mysite.com/templates_group/">http://subdomain1.mysite.com/templates_group/</a>When I click the link I get a HTTP 404
If I go to the live URL for the sub-domains I just get a blank page.
Can anybody see what I am missing?