I am trying to configure codeigniter with multiple application which will share common CI resources,
I did renamed application to applications and created two applications like below,
www\app1\application\controller...models...view
www\app2\application\controller...models...view
www\system\
and id1.php and id2.php are duplicate of index.php,
then i changed application path in app1.php and app2.php as below,
in app1.php -- $application_folder = $_SERVER['DOCUMENT_ROOT'].'app1/application';
in app2.php -- $application_folder = $_SERVER['DOCUMENT_ROOT'].'app2/application';
and created .htaccess file as below,
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app1/id1.php/$1 [L,QSA]
Problem...
When i load http://localhost/app1/welcome
, it work fine,
but when i load http://localhost/app2/welcome
it throw 404 page not found
. I assume this is because htacess file, how to add two id1.php and id2.php in htacess file?
Thanks,