Topic on Project:Support desk

Two domain for one installation

4
46.0.207.7 (talkcontribs)

Hi! Can mediawiki be used with two domains? I want have one installation folder and one database with general content but on two domains with various skin, it's possible?

Bawolff (talkcontribs)

yes, LocalSettings.php is a config file. You can use if statements in the config file to change the value of $wgSkin, etc. You may want to add something to $wgRenderHashAppend for the different domains, or {{SERVER}}, etc [including some urls] will be wrong on some pages. Also make sure that $wgServer is either not included (so its autodetected) or that its correct for the different domains.

UksusoFF (talkcontribs)

Thx for answer! I can make two skins: "exampledomain.com" and "sampledomain.com". Place it in skin's directory. And set $wgDefaultSkin = "{{SERVER}}". It's right?

UksusoFF (talkcontribs)
Reply to "Two domain for one installation"