<div class="gmail_quote">On Mon, Jan 25, 2010 at 5:30 AM, Aditya Mandayam <span dir="ltr"><<a href="mailto:adityams@gmail.com">adityams@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I would like to do the following things:<br>
<br>
1. Run PMWiki at <a href="http://mysite.com" target="_blank">http://mysite.com</a> (the site root)<br>
and<br>
2. Eliminate any intermediate folder or Category names.<br>
<br>
e.g. presently the page 'Banana' lies under the Category 'Fruit' and the URL is:<br>
<a href="http://mysite.com/pmwiki/index.php/Fruit/Banana" target="_blank">http://mysite.com/pmwiki/index.php/Fruit/Banana</a><br>
<br>
I would like this page to reside at the URL:<br>
<a href="http://mysite.com/Banana" target="_blank">http://mysite.com/Banana</a><br>
<br>
How would I go about doing this? Please assume no conflicting page<br>
names such as '../Fruit/Banana' and '../Yellow/Banana'<br><br></blockquote><div>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 <a href="http://mysite.com/Banana">http://mysite.com/Banana</a> which group they want to go to.</div>
<div><br></div><div>In other words, if you have a page Fruit/Banana and another page Vegetable/Brocolli and someone goes to <a href="http://mysite.com/Brocolli">http://mysite.com/Brocolli</a> pmwiki has to know whether to look in Fruit/Brocolli or in Vegetable/Brocolli. </div>
<div><br></div><div>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.</div><div><br></div><div>Option B: You *could* (via htaccess) direct <a href="http://mysite.com/Brocolli">http://mysite.com/Brocolli</a> 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...</div>
<div><br></div><div>-Peter</div></div><br>