I’m trying to use CodeIgniter for multiple applications along with mod_rewrite for the application folder/name.
My CodeIgniter structure is as follows:
webroot/appone/
webroot/apptwo/
webroot/system/
webroot/index.php
webroot/appone.php
webroot/apptwo.php
I followed the example listed here to use CI with multiple apps. http://codeigniter.com/wiki/Multiple_Applications/
I’m looking to use mod_rewrite that will show the following:
domain.com/appone/
domain.com/apptwo/
I believe Dirk is correct.
Here’s the code I’m using (got it from Elliot Haughin) on every app folder and it works fine. Just change APP_FOLDER_NAME to whatever you wish appone, apptwo etc.
have an .htaccess file on each folder with the following:
PS. Don’t forget to remove the index.php and define base url on CI config.
Cheers.