[pmwiki-users] get rid of group Main from url
JB
jbit at bitlink.com
Fri Nov 3 14:34:14 CST 2006
> Yes, I believe that you'd get what you want if you just followed the
> GetRidOfMain recipe, but left out the line that sets $EnablePathInfo.
>
> Let us know if it doesn't work.
It did not work. The url for a link now looks like:
http://gnuzoo.org/stuffforsale//OfficeDesk
My config.php has:
# Eliminate "index.php" & "pmwiki.php" from URLs.
$EnablePathInfo = 0;
$ScriptUrl = "http://gnuzoo.org/stuffforsale/";
The code I added after is is:
$PagePathFmt = array(
'{$Group}.$1', # page in current group
'{$DefaultGroup}.$1', # page in default group (Main)
'$1.$1', # group home page
'$1.{$DefaultName}', # group home page
);
$pagename = MakePageName('Main.HomePage', $pagename);
$FmtPV['$PageUrl'] = 'PUE(($group==$GLOBALS["DefaultGroup"])
? "$ScriptUrl/$name"
: "$ScriptUrl/$group/$name")';
$FmtP["!\\\$ScriptUrl/$DefaultGroup/!"] = '$ScriptUrl/';
More information about the pmwiki-users
mailing list