From: Jeff D. <da...@da...> - 2001-11-13 00:40:40
|
On Mon, 12 Nov 2001 22:03:39 +0100 "Tara Star" <te...@cl...> wrote: > a) is there any way I can make the script "wiki" access the WikiFiles > which are in /public_html/spirolattic/ (mapped as another domain name)? (If I understand the question correctly:) Sure. You can put phpwikis all over the place --- they can even be on different physical hosts. As long as each one is configured to talk to the same database (same mysql server/database, or same dbm files) they will all have the same contents. > b) if it was possible (I suspect it isn't, though), then I could access > the wiki by spirolattic.net/wiki/ Certainly possible. > => b1) could I tell my server that "wiki" is the default file to look > for in a directory (not "index.php"), so that the "wiki/" part > disappears in the uri? (again, I don't think it is possible, as it isn't > when the default file is "index.php") You want e.g. the RecentChanges to be at http://spirolattic.net/RecentChanges, I think. You can do this, I think, but not, I think (again), in quite the way you suggest. You could do it, I'm sure, with mod_rewrite (since you can do just about anything with mod_rewrite). It's also probably possible to do this using Apache's 'Handler' directive. There's some cryptic notes I made on this at http://phpwiki.sf.net/wiki/PageNamesInPathInfo. The reason most people would not want to do this is that if you do, the wiki occupies the entire URL name space of your domain. If you ever want to add something else (other than wiki) under that domain, you're out of luck, since every URL points to a wiki page. |