[pmwiki-users] Running siteroot with PMWiki

Peter Bowers pbowers at pobox.com
Mon Jan 25 00:14:32 CST 2010

On Mon, Jan 25, 2010 at 5:30 AM, Aditya Mandayam <adityams at gmail.com> wrote:

> I would like to do the following things:
> 1. Run PMWiki at http://mysite.com (the site root)
> and
> 2. Eliminate any intermediate folder or Category names.
> e.g. presently the page 'Banana' lies under the Category 'Fruit' and the
> URL is:
> http://mysite.com/pmwiki/index.php/Fruit/Banana
> I would like this page to reside at the URL:
> http://mysite.com/Banana
> How would I go about doing this? Please assume no conflicting page
> names such as '../Fruit/Banana' and '../Yellow/Banana'
> You will have to either (a) choose ONE and ONLY ONE group name ("group" is
what you are referring to as "category" -- category is something else in
pmwiki) or (b) have some way of telling when someone goes to
http://mysite.com/Banana which group they want to go to.

In other words, if you have a page Fruit/Banana and another page
Vegetable/Brocolli and someone goes to http://mysite.com/Brocolli pmwiki has
to know whether to look in Fruit/Brocolli or in Vegetable/Brocolli.

option A: If ALL pages reside in a single group then you just use htaccess
to go to that hardcoded group (just a small variation off of what you find
in CleanUrls.

Option B: You *could* (via htaccess) direct http://mysite.com/Brocolli to
Unknown/Brocolli and have some special script in group Unknown which would
look for *.Brocolli and redirect to the first page it finds in that list...
 But I'm guessing you are going to run into a lot of conflicts with other
recipes, forms, etc if you do this...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100125/a7dcda3f/attachment.html 

More information about the pmwiki-users mailing list