Welcome Guest, Not a member yet? Register   Sign In
Addon domain to display class content
#2

[eluser]mthomas9[/eluser]
I figured it out.. Not sure if its the right way, but it does the trick:

I copied the index.php file from the primary domain to the addondomain subfolder. Changed the $system_path and $application_folder to point back to the primary domains files

$system_path = "../system";
$application_folder = "../application";


Then in the application/config/routes.php file I replaced

$route['default_controller'] = "home";

with

switch($_SERVER['HTTP_HOST'])
{
case 'primary.com':
case 'www.primary.com':
$route['default_controller'] = "home";
break;

case 'addondomain.com':
case 'www.addondomain.com':
$route['default_controller'] = "addondomain";
break;

default:
$route['default_controller'] = "home";
break;
}


And that seemed to do the trick.


Messages In This Thread
Addon domain to display class content - by El Forum - 02-16-2011, 09:54 PM
Addon domain to display class content - by El Forum - 02-20-2011, 03:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB