Manual:$wgVariantArticlePath

Details
Used for links when having language's variants.

This is determined systematically unless overridden in , or you can set it manually with $2 as variant name and $1 as page name, like "/$2/$1".

Remember to configure your web server after setting this.