[pmwiki-users] Running siteroot with PMWiki

Aditya Mandayam adityams at gmail.com
Mon Jan 25 01:00:02 CST 2010


Understood.

What about my first question, running the site root?

On Mon, Jan 25, 2010 at 7:14 AM, Peter Bowers <pbowers at pobox.com> wrote:
> 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...
> -Peter
>



More information about the pmwiki-users mailing list