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?
Topic on Project:Support desk
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.
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?
UPD: Thx! It's worked:
if (preg_match("/(pda|mobile)/i", $_SERVER['SERVER_NAME'])) { $wgDefaultSkin = 'wptouch'; } else { $wgDefaultSkin = 'vector'; }
https://www.mediawiki.org/wiki/Simple_mobile_skin_auto_change