[pmwiki-users] get rid of group Main from url

JB jbit at bitlink.com
Fri Nov 3 15:51:46 CST 2006


> Oops. My bad. The line starting $FmtPV['$PageUrl'] should read:
> 
> $FmtPV['$PageUrl'] = 'PUE(($group==$GLOBALS["DefaultGroup"])
>                         ? "$ScriptUrl?n=$name"
>                           : "$ScriptUrl?n=$group.$name")';
> 
> 
> Although there might need to be a slash between the $ScriptUrl and ?n=, making
> it $ScriptUrl/?n=, but I don't think so.

That did not help at all.  It made it worse!  The "Main." is still
in the urls and now it displays "index.php" again!

Here is what I have to remove "index.php" from the url

	# Eliminate "index.php" & "pmwiki.php" from URLs.
	$EnablePathInfo = 0;
	$ScriptUrl = "http://gnuzoo.org/stuffforsale/";

It changes my url from:
http://gnuzoo.org/stuffforsale/index.php?n=Main.OfficeTable

to:
http://gnuzoo.org/stuffforsale/?n=Main.OfficeTable

I want to try and make it look like:
http://gnuzoo.org/stuffforsale/?n=OfficeTable

  - get rid of the "Main.".






More information about the pmwiki-users mailing list