Yes, the rewrite rules would be in the apache configuration file - and they would only work if mod_rewrite was loaded/enabled. That's probably is going on.
Actually, if you had the rewrite rules set up correctly, you shouldn't see index.php (much less index.php?) at all in the path. Like this: