Hi,
I have a site running 2.1.3 that I am trying to set up contexts on. I'm following this tutorial:
http://www.belafontecode.com/modx-revolution-hosting-multiple-domains/#option2
I have this working successfully on two other sites that I have, however, they are not using 2.1.3 (one is 2.0.8 and the other 2.1.2).
Have there been any other changes in versions that might affect how things work?
I thing it is specifically this code in the index.php file:
/* setup for multiple domains */
switch(strtolower(MODX_HTTP_HOST)) {
case 'http://www.nanettecameron.net/:80':
case 'http://www.nanettecameron.net/':
// if the http_host is http://www.nanettecameron.net/, switch the context to web
$modx->initialize('web');
break;
case 'www.inpursuitofvenus.com:80':
case 'www.inpursuitofvenus.com':
// if the http_host is inpursuitofvenus.com, switch the context to inpursuitofvenus.com
$modx->initialize('venus');
break;
default:
// by default / if no other rule can be applied, load 'web' context
$modx->initialize('web');
break;
}
Both sites currently go to the web context, but if i just use this line: $modx->initialize('web'); and change it to $modx->initialize('venus');
then I am able to get to the venus context.
Any ideas?