<div class="gmail_quote">On Mon, Jan 25, 2010 at 5:30 AM, Aditya Mandayam <span dir="ltr">&lt;<a href="mailto:adityams@gmail.com">adityams@gmail.com</a>&gt;</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 &#39;Banana&#39; lies under the Category &#39;Fruit&#39; 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 &#39;../Fruit/Banana&#39; and &#39;../Yellow/Banana&#39;<br><br></blockquote><div>You will have to either (a) choose ONE and ONLY ONE group name (&quot;group&quot; is what you are referring to as &quot;category&quot; -- 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&#39;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>