I just managed to get MediaWiki working from a subdomain, rather than from /wiki. There are two changes that you need to make to localsettings.php when trying to serve MediaWiki from a subdomain. The first is to change
$wgScriptPath = "" ;
from whatever the path was, and the second is to insert:
$wgServer = "http://subdomain.yourdomain.tld";
The first setting stops the scripts from being called from the wiki subdirectory (which is now your subdomain) and the second tells bits of MediaWiki where to find things like the skins and images. That's the best explanation I can come up with right now!
Reference Installing MediaWiki on a subdomain? and Serving MediaWiki from a Subdomain
This worked like a charm for me with MediaWiki 1.6.8. Thanks for the help!
Thank John – glad to be of help!
Thanks also, that saved me a bit of trouble. I was moving several websites to subdomains and my original wiki install became inaccessable. This fix allowed me to make the switch to subdomain with ease. Thanks again.
Cool Mike! Thanks for the comment. It’s funny that I wrote this so long ago when I was setting up a genealogy website from my family, and quite soon after working this out I shut down my mediawiki installation and moved to dedicated genealogy software from TNG
Worked for me (and saved me hours) with Wiki 1.4.7!
Pete
Thanks for that clue! This was that I searched for!
Excellent. Thank you.
Many Tanks by me too!
thanx metoo
now I would like to rewrite categories to subdomains
hmm.. can’t help you there John, never attempted that. But a quick search has turned up the following:
http://www.organicseo.org/URL_Rewriting.html#Rewriting_Subdomains
which seems like something along the lines of rewriting categories to subdomains. I haven’t tested it – I no longer have my MediaWiki installation…
Cam.