Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Subdomains
#7

[eluser]rogierb[/eluser]
Define 2 constants in your index.php
1: the template you want to use
2: the base_url or subdomain

Then edit config.php to use that constant in the config.php base_url
Code:
$config['base_url']    = "http://".(defined(MY_CONSTANT))?MY_CONSTANT:"").$_SERVER['SERVER_NAME']."/";

or something like that.

The same applies to the view files.


Messages In This Thread
[SOLVED] Subdomains - by El Forum - 02-16-2010, 10:10 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 12:55 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 01:42 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 02:36 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 03:08 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 04:56 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 05:48 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 07:01 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 07:12 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 07:22 AM
[SOLVED] Subdomains - by El Forum - 02-17-2010, 07:42 AM
[SOLVED] Subdomains - by El Forum - 02-19-2010, 03:25 AM
[SOLVED] Subdomains - by El Forum - 02-19-2010, 04:34 AM
[SOLVED] Subdomains - by El Forum - 02-19-2010, 05:40 AM
[SOLVED] Subdomains - by El Forum - 04-11-2010, 05:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB