On Tue, Oct 13, 2009 at 7:09 AM, V.Krishn <[email protected]> wrote: > > Pmwiki currently stops any execution if in clean url a second slash and text > is added, example > http://www.pmwiki.org/wiki/Calendar/2008/Holidays > > Is there a way to overcome this limitation so that Pmwiki continues with the > first two parameters Calendar/2008 and ignores the rest, but at the same time > keeps the rest or all url(parsed and if possible sanitized) in some > array/variable in similar way as ParseArgs parses inputs. > > Idea is to have those inputs availabe to some cookbook recipe without having > to create url like http://www.pmwiki.org/wiki/Calendar/2008?show=Holidays
What type of cleanurls are you using? Example 2 under URL Rewriting? Or something else? If that's the version you are using then you could probably do something like this in place of the last .htaccess line: Here's what is recommended as the normal approach: RewriteRule ^([A-Z0-9\xa0-\xff].*)$ pmwiki/pmwiki.php?n=$1 [QSA,L] Here's what it might look like: RewriteRule ^([^/]*)/([^/]*)(/([^/]*))?$ pmwiki/pmwiki.php?n=$1.$2&show=$4 [QSA,L] I haven't tested it, but I think something like that might work. Of course, I don't know how it might respond if you don't have the final argument -- probably you would need a separate rule for that or something? -Peter _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
