Welcome Guest, Not a member yet? Register   Sign In
url problem
#1

[eluser]dimis[/eluser]
We have a site that will have more than one domains (for example .com , .net , .eu) and it will be at one folder at server.
How can I configure codeigniter to take dynamically the domain at config file or somewhere?
I have problem with some flash and the images of the site.
#2

[eluser]alaa007[/eluser]
in your config.php file after the
Code:
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

you can do this
Code:
if ($_SERVER['HTTP_HOST'] == 'example.com') {
    $config['blabla'] = 'blabla';
    .......
}
elseif($_SERVER['HTTP_HOST'] == 'example.net') {
    $config['blabla'] = 'example';
    .....    
}

and so on...
hope it helps you.




Theme © iAndrew 2016 - Forum software by © MyBB