CodeIgniter Forums
[split] Configuring multiple applications - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forum-9.html)
+--- Thread: [split] Configuring multiple applications (/thread-63091.html)



[split] Configuring multiple applications - ravinesh - 09-25-2015

I am also stuck up in one problem. I am configuring Multiple application in codeigniter 3.0.1

My Folder Structure is

Yod
system
siteweb (First Application)
  ------application
   ------index.php
sitecrm (Second Application)
  ----application
  ----index.php
userguide
.htaccess
index.php



i set root index.php
 $application_folder = 'siteweb/application';

I also set index.php for siteweb
  $system_path = '../system';
  $application_folder = 'application';

And also set index.php for sitecrm
  $system_path = '../system';
  $application_folder = 'application';


When we hit the url like "http://localhost/yod or http://localhost/yod/siteweb"  it is displaying siteweb application which is correct and when we hit url like "http://localhost/yod/sitecrm/" it is displaying siteurl page which is also correct

but the problem is when we access the controller like "http://localhost/yod/siteweb/blog or  http://localhost/yod/sitecrm/blog  then it is showing the error : 404 Page Not Found

this is my config.php file same for both application
<?php
defined('BASEPATH') OR exit('No direct script access allowed');


$config['base_url'] = 'http://localhost/yod';

$config['index_page'] = '';


$config['uri_protocol'] = 'AUTO';


$config['url_suffix'] = '';


$config['language'] = 'english';


$config['charset'] = 'UTF-8';



$config['enable_hooks'] = FALSE;


$config['subclass_prefix'] = 'MY_';


$config['composer_autoload'] = FALSE;


$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';



$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';


$config['log_threshold'] = 0;



$config['log_path'] = '';

$config['log_file_extension'] = '';


$config['log_file_permissions'] = 0644;


$config['log_date_format'] = 'Y-m-d H:iConfused';$config['error_views_path'] = '';


$config['cache_path'] = '';


$config['cache_query_string'] = FALSE;


$config['encryption_key'] = 'My name is khan';$config['sess_driver'] = 'files';

$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

$config['cookie_prefix'] = '';

$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;

$config['standardize_newlines'] = FALSE;


$config['global_xss_filtering'] = FALSE;


$config['csrf_protection'] = FALSE;

$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array();

$config['compress_output'] = FALSE;


$config['time_reference'] = 'local';


$config['rewrite_short_tags'] = FALSE;


$config['proxy_ips'] = '';