Manual:$wgUsePathInfo

Details
Whether to use 'pretty' URLs, e.g.

The default value is dynamically created depending on whether the php module is running cgi mode. If so this is false, otherwise true..