1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Installing MediaWiki on a subdomain
MediaWiki, when installed as a subdomain, will probably redirect to the primary domain. You must therefore edit "localsettings" in your MediaWiki installation. Set $wgServer and $wgScriptPath to the name or the subdomain in which the wiki is installed:
$wgServer = "abc.domain.xyz";
$wgScriptPath = "http://abc.domain.xyz";