From: Tara S. <te...@cl...> - 2001-11-12 21:07:32
|
Jeff Dairiki wrote: > On Sun, 11 Nov 2001 22:18:25 +0100 > "Tara Star" <te...@cl...> wrote: >=20 >=20 >>I see you (who?) did it for http://phpwiki.sourceforge.net/wiki/ - page= =20 >>urls look like: http://phpwiki.sourceforge.net/wiki/PageName >> >=20 > Here's how it's done on the sourceforge site: [snip] >=20 > That's it! There are many ways to get this to work. Study the comment= s > in index.php for some more hints. >=20 > Also if you do this kind of funnyness you're much more likely to uncove= r > arcane bugs, snakes and spiders. *arms herself with Raid(TM) for dealing with the avalanche of=20 six-to-eight-legged beings which is likely to show up* Now, let's consider another (soon-to-be-real-life) case. The wiki files=20 are in /public_html/spirolattic/. <thinking class=3D"aloud"> Let's say I create /thing/ (same level as /public_html/) and set that as=20 the root directory for the domain spirolattic.net. I create a file=20 called "wiki" as directed above, in the directory /thing/ =3D> /thing/wik= i. a) is there any way I can make the script "wiki" access the WikiFiles=20 which are in /public_html/spirolattic/ (mapped as another domain name)? b) if it was possible (I suspect it isn't, though), then I could access=20 the wiki by spirolattic.net/wiki/ =3D> b1) could I tell my server that "wiki" is the default file to look=20 for in a directory (not "index.php"), so that the "wiki/" part=20 disappears in the uri? (again, I don't think it is possible, as it isn't=20 when the default file is "index.php") </thinking> Ok, in fact I just want to be sure I'm right in thinking these things=20 aren't possible. As I see it (considering I don't want to move my WikiFiles), I'll have=20 to make the new domain point to a directory on the same level as the=20 current wiki directory, and then do some nasty mod_rewrite so that pages=20 can be accessed as http://spirolattic.net/RecentChanges - for example. Does anybody see any other solutions to this? Thanks :) Tara --=20 Je r=E9ponds au mieux de mes connaissances Climb to the Stars! - http://climbtothestars.org/ SpiroLattic - http://climbtothestars.org/spiro/ Pompeurs Associ=E9s - http://pompage.net/ |