This turned out to be quite simple, but I wanted to post a solution for the record...<div><br class="webkit-block-placeholder"></div><div>There is a useful function called Redirect() in PmWiki&#39;s core functions. To use it, just call Redirect($pagename).
</div><div><br class="webkit-block-placeholder"></div><div>For example... In a group.php config file I can include:</div><div><br class="webkit-block-placeholder"></div><div><div>$ref = $_SERVER[&quot;HTTP_REFERER&quot;];
</div><div>$pattern = &#39;/collection=([^\&amp;]*).*item=([^\&amp;]*)/&#39;;</div><div>if (preg_match($pattern,$ref,$matches)) {</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>$collection = $matches[1];
</div><div></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>$item = $matches[2];</div><div></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Redirect(MakePageName(&quot;&quot;,&quot;Discuss.$collection$item&quot;));
</div><div><div>}</div><div>Redirect(&quot;Discuss.Sorry&quot;);</div><div><br class="webkit-block-placeholder"></div><div>...Eric</div></div><br><div><span class="gmail_quote">On 11/21/07, <b class="gmail_sendername">Eric Celeste
</b> &lt;<a href="mailto:efc.dev@gmail.com">efc.dev@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I&#39;d like to have PmWiki choose which page to show based on the referrer to PmWiki without depending on external rewriting of the addresses involved. For example:
</div><div><br>&nbsp;</div>
<div>&nbsp;&nbsp; &nbsp;... if my wiki is &quot;<a href="http://target.com/pmwiki.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://target.com/pmwiki.php</a>&quot;,&nbsp;</div><div><br>&nbsp;</div><div>&nbsp;&nbsp; &nbsp;... a link on &quot;
<a href="http://source.com/foo" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://source.com/foo</a>&quot; to &quot;<a href="http://target.com/pmwiki.php?n=Bob" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://target.com/pmwiki.php?n=Bob</a>&quot;&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;would end up retrieving &quot;Bob/foo&quot;&nbsp;
</div><div><br>
</div><div>&nbsp;&nbsp; &nbsp;but&nbsp;</div><div><br>&nbsp;</div><div><div>&nbsp;&nbsp; &nbsp;... a link on &quot;<a href="http://source.com/bar" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://source.com/bar</a>&quot; to &quot;<a href="http://target.com/pmwiki.php?n=Bob" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://target.com/pmwiki.php?n=Bob</a>&quot;&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;would end up retrieving &quot;Bob/bar&quot;&nbsp;</div><div><br>&nbsp;</div><div>I know how to get and parse the referrer in PHP, but I am not clear on how to get PmWiki to redirect its efforts toward showing a page other than the one it was called to show.&nbsp;
</div><div><br>&nbsp;</div><div>Any quick hints as to how to go about this in the Bob.php group config page?</div><div><br>&nbsp;</div><div>Thanks,</div><div>...Eric</div>
<div><br>&nbsp;</div></div>
</blockquote></div><br>&nbsp;</div>