[pmwiki-users] 2 wikis 1 database
steve at fell-services.net
Tue May 6 09:39:46 CDT 2008
On Tue, 2008-05-06 at 02:15 +0000, Dave Cooke wrote:
> I'm trying 2 wikis to use 1 database (wiki.d folder). One is on
> http://mydomain.com and the other at http://mobile.mydomain.com. The physical
> linux addresses on the apache server are /www/wiki/pmwiki.php and
> I've tried various formulae for $WikiDir and $WikiLibDirs in config.php and
> failed. Anyone help?
I did this for a while, once....
Basically, I had two different wiki skins - one for admin purposes and
one for general readers, and I had /public_html/pmwiki/pmwiki.php for
one and /public_html/pmwiki/pmedit.php for the other (and similarly for
local/config.php and local/confedit.php and so on).
I then used mod_rewrite in Apache to ensure that people going to
http://mydomain.tld/content/index.php got one view and people going to
http://mydomain.tld/admin/index.php got the other - this should work for
subdomains as well.
That said, I really wouldn't recommend going down the double headed
route - when you upgrade the wiki, you need to transfer the changes into
the "other" set of files manually.
Would I be correct in guessing that what you want to do is serve mobile
users the same content, but with a simplified look and feel?
If so, you can use the SkinChange recipe from the cookbook to
allow ?skin=mobile and ?skin=desktop (say) as part of your URL - and
then mod_rewrite again to hide this from the end user.
Steve Glover at email: steve at fell-services.net
SDSS, EDINA, University of Edinburgh, tel: +44 (0)131-650 2908
Causewayside House, 160 Causewayside, fax: +44 (0)131-650 3308
Edinburgh EH9 1PR mobile: +44 (0) 7961 446 902
More information about the pmwiki-users