You can find the following solution helpful:
1.Create a folder 'admin' in the root directory of CodeIgniter.
2.Copy the 'index.php' file inside 'admin' folder.
3.Change the following variables of the 'index.php' file inside 'admin' folder
$system_path = '../system';
$application_folder = '../application/admin';
4.Create a '.htaccess' file inside 'admin' folder and use the following code:
RewriteEngine on
RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
5.Set the $config['base_url'] to 'your url/admin' inside 'application/admin/config/config.php' and autoload 'url' helper.
6.Now you can access the admin panel using 'your url/admin'.
7.Follow the same procedure for 'client'.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…