Welcome Guest, Not a member yet? Register   Sign In
CI and Wildcard Domains
#5

[eluser]Stoney[/eluser]
Quote:I am currently trying to route all wildcard domains to a single controller to load their content etc.

Why don't you route all traffic to a single controller with routing from routes.php?

I'm doing it like this (multilang site):

Code:
$route['default_controller'] = "main";

//excluding controllers from routing to main
$route['^en/dashboard/(.+)$'] = 'dashboard/$1';

$route['^en/(.+)$'] = $route['default_controller'].'/index/$1';
$route['^en$'] = $route['default_controller'].'/index/$1';


Messages In This Thread
CI and Wildcard Domains - by El Forum - 05-04-2011, 06:02 AM
CI and Wildcard Domains - by El Forum - 05-04-2011, 06:25 AM
CI and Wildcard Domains - by El Forum - 05-04-2011, 06:29 AM
CI and Wildcard Domains - by El Forum - 05-04-2011, 06:49 AM
CI and Wildcard Domains - by El Forum - 05-05-2011, 12:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB