CodeIgniter Forums

Full Version: [SOLVED] multiple instances of CI in same host.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


I'm just started to learn CodeIgniter. I thought best way to archieve this goal is doing practise. So, i started to a little project.

Before CI days, i was using two environments called production and development.

I started with installing CI to root, like Then i made some changes like removing index.php thing in url (htaccess) and adding .html suffix.

I can browse with and

Yes, no problem yet, until i create a sub directory named and install new CI instance.

When i browse it, ( default controller comes up. But when i go with it gives me nice 404 error.

I want to have two environments. I will do changes in /development and when i finish i will copy these files to root folder.

And i couldn't get it working. I cant browse the controllers inside /development subdirectory.

im not using htacces fine on my development directory, like /development/.htaccess

My htaccess file (root).
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]