[eluser]stevepaperjam[/eluser]
I've had a good look round and no-one seems to have had this problem yet, so it could be something freaky at my end, but here goes.
I've got my CI 1.54 project set up so that the index.php is rewritten out, so...
redirects to..
...which is then routed internally to a controller in shop/home.
On upgrading to 1.6 I'm getting a 404 when issuing /home, although /index.php/home works. On inspection it seems that libraries/URI.php wasn't quite picking up the first segment.
Here's the original code from line 73 or so of URI.php, in the method _fetch_uri_string():
Code:
$key = array_keys($_GET);
$index = current($key);
$this->uri_string = $_GET[$index];
return;
I changed the third line here to read:
Code:
$this->uri_string = $index;
... and now it works. I'm using the same htaccess for stripping out the index.php across both versions, by the way. Could someone verify this bug and fix?
BTW I'm using MAMP1.7 on a Macbook, and the issue occurred in both PHP4.47 and PHP 5.2.3.