[eluser]shallway[/eluser]
My dev box is on apache2. While my hosting company is on apache 1.3. This seems to cause some problem with the htaccess rewrite - which I intended to get rid of 'index.php' in the url. Here is my .htaccess content:
RewriteCond $1 !^(index\.php.*)
RewriteRule ^(.*)$ /index.php/$1 [L]
it works on apache2 but when I upload it to my virtual host(apache1.3), the url routing stops working, I always got '404 Page Not Found' error fro CI.
a little debug, I found in system/libraries/Router.php line 238
show_404( $segments[0] ); is always invoded
I dumped out $segments array with the request domain.com/user/login, and it's
0 => index.php
1 => user
2 => login
How to fix it? Again all was well on apache2 with the same .htaccess rules.
Thanks for your help.