CodeIgniter Forums
Installation/configuration problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Installation/configuration problem (/thread-43738.html)



Installation/configuration problem - El Forum - 07-21-2011

[eluser]Unknown[/eluser]
I'm trying to install CodeIgniter 2.0 in a similar way i was using it with CI 1.6
I want this directory structure:

Code:
- .htaccess (redirect everything to webroot)
- application
- system
- webroot
   - .htaccess
   - css
   - js
   - images
   - index.php

I'm using .htaccess to redirect the whole thing to webroot/ and thereafter i check through another .htaccess if the requested URL exist in the webroot/ directory. If exist, output the file, else redirect to index.php which is CI index.php file.

I've dig into CI Router and problem seems to be related to URI retrieved from the server.
In my case, my project is in /Sites/DemoProject/ and URI parsed by CI Router always start by /Sites/DemoProject/ which is my base url.

Is this a bug or something i'm doing wrong?
Thanks


Installation/configuration problem - El Forum - 07-22-2011

[eluser]Unknown[/eluser]
I've found the problem.
Seems new to CI 2.0.2 that Auto URI Protocole first look for URL_REQUEST.

In CI 1.7, it was firstly look at PATH_INFO.
I've changed it in my config file and everything work fine.