[pmwiki-users] Re: problems with setting up a wiki farm
design at flutesong.net
Sat Mar 12 03:51:32 CST 2005
Saturday, March 12, 2005, 9:12:53 AM, rickla wrote:
> Now I'm debating whether to risk trying to set up
> clean URLs.
Hi Rick, I use clean URLs on a farm installation by making use of
I set up a pmwiki farm in folder (siteroot/)pmwiki/ .
I set up fields in arbitrary named folders like field1, field2.
I created text files without file-extension in the site root
(public_html/) (create normal text file first, then rename it)
for each field with a name which will be the
part of the root name for the fields pages, like wiki, test, family.
The content of these files are:
<?php chdir("field1"); include("../pmwiki/pmwiki.php"); ?>
etc with the filed folder name in the chdir bracket.
I created a .htaccess file in the site root (create a text file and rename)
with content like:
This declares the named files as being php files.
Maybe the syntax of this could be condensed, but I don't know any
better at the moment.
In each fields local/config.php I've set
$ScriptUrl = 'http://www.mydomain.com/wiki';
$ScriptUrl = 'http://www.mydomain.com/test';
etc to point to the fields "run.php" file, i.e. the one with the
This approach is not described in the CleanUrl recipe, and maybe it is
not the best, but it works fine and gives me the flexibility of
choosing or changing the fields names without need of any folder
Maybe Neil Herber likes to describe his approach, as it is surely
different to mine, and perhaps better.
More information about the pmwiki-users