[pmwiki-users] get rid of group Main from url
Stirling Westrup
sti at pooq.com
Fri Nov 3 17:10:41 CST 2006
JB wrote:
>> 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.".
I set up a test wiki and tried it out. I'm afraid I couldn't get it to work
without putting in some Alias lines in my apache config. Everything else I
tried broke somehow. Are you able modify your server config, or not?
More information about the pmwiki-users
mailing list