Many thanks for letting me know about wiki farms, I had no idea, I'm glad I asked!
Setup:
* Following the instructions page given I backed up my conf & data directories for both my wikis.
* unzipped my farmer - the latest dokuwiki into /public_html/dokuwiki (I am using cpanel\ftp)
* copied the /inc/preload.php and uncommented
both lines ^^
* created /public_html/farm
* unzipped 2 animal templates into /public_html/farm, wiki1 & wiki2, i want both accessible via mydomain/wiki1 & mydomain/wiki2
* copied conf & data files from wiki1 & wiki2 backups, overriding contents of template directories
update
* changed each animal conf/local.protected.php $conf['basedir'] = '
/farm/wiki1/' & '
/farm/wiki2/' respectively
Note: these directories (mydomain/wiki1 & mydomain/wiki2) do not actually exist
* created .htacess in
wiki1 /public_html/farm:
AllowOverride All
RewriteEngine On
RewriteRule ^/?([^/]+)/(.*) /dokuwiki/$2?animal=$1 [QSA]
RewriteRule ^/?([^/]+)$ /dokuwiki/?animal=$1 [QSA]
Options +FollowSymLinks
Outcome:
* mydomain/wiki1 & mydomain/wiki2 both 404
* mydomain.com/farm/wiki1/
works!!
* mydomain.com/farm/wiki2/ login works but them show "This topic does not exist yet" rather than correct home page.
Looking in cpanel the page data is there but the dokuwiki sitemap does not show it
^^ I have tried all of:
DOKU_FARMDIR = /home/mydomain/public_html/farm *SET TO THIS*
DOKU_FARMDIR = /public_html/farm
DOKU_FARMDIR = /var/www/farm
I'm going around in circles now. Any advice appreciated!