[pmwiki-users] Clean URLs - get rid of "Main"

Patrick R. Michaud pmichaud at pobox.com
Wed Apr 12 10:43:45 CDT 2006


On Wed, Apr 12, 2006 at 05:18:33PM +0200, Mike wrote:
> Patrick R. Michaud wrote on 12.04.2006 17:12:
> > On Wed, Apr 12, 2006 at 05:09:17PM +0200, Mike wrote:
> > 
> >>Sure - maybe I'm just doing something wrong. But as a matter of fact,
> >>this code
> >>
> >>$FmtPV['$PageUrl'] =
> >>       'PUE(($EnablePathInfo) ? "$ScriptUrl/$name" : "$ScriptUrl?n=$name")';
> >>     $EnableFixedUrlRedirect = 0;
> >>
> >>is now the last part of local/config.php, I re-checked.
> >>
> >>Have a look at
> >>http://astraxa.net/?CEP
> > 
> > 
> > Hmm.  $EnableFixedUrlRedirect seems to be working, but the $FmtPV isn't.
> > 
> > goes to the WikiSandbox page but doesn't put the "Main" in front.
> > Unfortunately, PmWiki is still putting the group name in front
> > of page links, so it's not seeing the $FmtPV setting for
> > some reason.
> > 
> > Can you set $EnableDiag=1; on that site?

Oh,  you're running 2.0.12.  That explains it -- the $FmtPV
variable didn't exist until 2.1.

In 2.0.12, you could try the following instead:

    $FmtP['/$PageUrl/'] = '$ScriptUrl/$Name';

Again, I don't know if it'll work, but it's worth a try.

Pm





More information about the pmwiki-users mailing list