Manual:$wgUsePathInfo/en

Details
Whether to use 'pretty' URLs (or Short URL), e.g.

Override this to false if  contains unexpectedly incorrect garbage, or to true if it is really correct.