[pmwiki-users] more inputs in clean url
pbowers at pobox.com
Tue Oct 13 06:16:06 CDT 2009
On Tue, Oct 13, 2009 at 7:09 AM, V.Krishn <vkrishn at insteps.net> wrote:
> Pmwiki currently stops any execution if in clean url a second slash and text
> is added, example
> 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:
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
More information about the pmwiki-users