Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] multiple instances of CI in same host.
#1

[eluser]Unknown[/eluser]
Hello,

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).
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]




Theme © iAndrew 2016 - Forum software by © MyBB