• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] multiple instances of CI in same host.


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 test.com. Then i made some changes like removing index.php thing in url (htaccess) and adding .html suffix.

I can browse with test.com and test.com/controller.html.

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

When i browse it, (test.com/development) default controller comes up. But when i go with test.com/development/controller.html 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]

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.