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

JB jbit at bitlink.com
Fri Nov 3 11:53:12 CST 2006


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  ?


Thanks


John





More information about the pmwiki-users mailing list