Okay first and foremost, this is probably the weirdest thing I've ever encountered. I don't know why, it just is

Serious thought..
Okay, I am running the latest version of Ubuntu, with Apache 2.0, and yes mod_rewrite module is loaded and works fine for simple specific rules. Now!, heres my problem. I'm trying to route ALL requests to my front controller,
Code: Select all
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
Just ignore those Cond's for now, I know they arn't causing the problem. Now lets say I visit
http://localhost/index/index or for that matter anything that starts with /index/, everything is working like a charm. For debugging, I simply put a exit('here'); to see if the request was made correctly.. which it was. Now, if I visit anything else, such as
http://localhost/index2/ or ihttp://localhost/idontwork/ I am simply getting a 404..
I am not ruling out a server misconfiguration here, so if anyone can shed some light on this disastrous rule.. please do.
Thank you.