![]() |
url problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: url problem (/showthread.php?tid=14103) |
url problem - El Forum - 12-18-2008 [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. url problem - El Forum - 12-18-2008 [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') { and so on... hope it helps you. |