If you use a relative URL for $wgArticlePath, it must start with a slash (/).

See https://www.mediawiki.org/wiki/Manual:$wgArticlePath.