Welcome Guest, Not a member yet? Register   Sign In
Multiple Sites - minor questions
#2

[eluser]Luci3n[/eluser]
I have also implemented multiple sites with one implementation of code igniter but my configuration was slightly different.

www/CodeIgniter (shared installation)

www/example1.com/application
www/example1.com/assets
www/example1.com/cache
www/example1.com/logs
www/example1.com/index.php
www/example1.com/.htaccess

www/example2.com/application
www/example2.com/assets
www/example2.com/cache
www/example2.com/logs
www/example2.com/index.php
www/example2.com/.htaccess

I had to make some small adjustment to index.php file slightly to allow for this at around line 85
Code:
if (is_dir($application_folder))
{
    define('APPPATH', $application_folder.'/');
}
else
{
    if ($application_folder == '')
    {
        $application_folder = 'application';
    }

    define('APPPATH', BASEPATH.$application_folder.'/');
}

but since this everything has worked perfectly and it is easy to upgrade and test newer version of codeigniter as they are released.


Messages In This Thread
Multiple Sites - minor questions - by El Forum - 06-29-2007, 12:20 AM
Multiple Sites - minor questions - by El Forum - 07-07-2007, 07:23 AM
Multiple Sites - minor questions - by El Forum - 07-19-2008, 11:13 PM
Multiple Sites - minor questions - by El Forum - 07-20-2008, 12:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB