[pmwiki-users] get rid of group Main from url
Stirling Westrup
sti at pooq.com
Fri Nov 3 12:33:51 CST 2006
JB wrote:
> Using the CleanUrls recipe Index File method
>
> http://www.pmwiki.org/wiki/Cookbook/CleanUrls#index_file
>
> I was able to shorten a url from
>
> http://gnuzoo.org/stuffforsale/index.php?n=Main.OfficeTable
>
> to
>
> http://gnuzoo.org/stuffforsale/?n=Main.OfficeTable
>
>
> #snippet of my config.php code:
> ########################################
> # Eliminate "index.php" & "pmwiki.php" from URLs.
> $EnablePathInfo = 0;
> $ScriptUrl = "http://gnuzoo.org/stuffforsale/";
> ########################################
>
>
>
> I also saw there was a GetRidOfMain recipe
>
> http://www.pmwiki.org/wiki/Cookbook/GetRidOfMain
>
>
>
> I would like to get my url to look like this:
>
> http://gnuzoo.org/stuffforsale/?n=OfficeTable
>
>
> Is there a way I can get rid of "main." in my url and not
> have to set $EnablePathInfo = 1 ?
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.
More information about the pmwiki-users
mailing list