[pmwiki-users] Clean URLs: All work except for the pmwiki group

Marc Cooper gmane at auxbuss.com
Wed Jun 21 08:20:37 CDT 2006


Marc Cooper said...
> Stirling Westrup said...
> > Marc Cooper wrote:
> > 
> > > I have clean URLs working fine, except when linking to anything in the 
> > > pmwiki group. Instead, the home wiki start page is displayed. All other 
> > > pages in all other groups work as expected.
> > > 
> > > In addition, this only happens on the *home wiki* within my *test setup* 
> > > - the "live" version works okay, and both are running under the same 
> > > Apache server. For all other wikis in the farm, references to the pmwiki 
> > > group work fine. (In this case, the physical files for the pmwiki group 
> > > are shared.)
> > > 
> > > When I remove the .htaccess [1], and edit $ScriptUrl, then the pmwiki 
> > > group pages are again accessible.
> > > 
> > > There's more. The "live" pmwiki is located at:
> > > 
> > >     <apache root>/pmwiki
> > > 
> > > while the test setup is at:
> > > 
> > >     <apache root>/~marc/pmwiki
> > > 
> > > (where this is defined via an Apache UserDir directive in the usual 
> > > way). When I copy the entire test wiki to the "live" location - and make 
> > > the appropriate .htaccess and pmwiki config changes - then the pmwiki 
> > > group pages are accessible with clean URLs.
> > > 
> > > Digging a little deeper, I tried changing /pmwiki/pmwiki.php to 
> > > /pmwiki/index.php and adjusting the .htaccess. When trying to access the 
> > > pmwiki group, this resulted in the Apache error: 
> > > 
> > > Negotiation: discovered file(s) matching request: <path>/pmwiki/PmWiki 
> > > (None could be negotiated)
> > > 
> > > I can't see what I'm missing. Can anyone help, please?
> > > 
> 
> Hi Stirling,
> 
> > It sounds like a misconfiguration of Apache.
> 
> Yes, I think so too, but I can't spot it. Grrr.
> 
> > Is is possible that the
> > method that you are using to provide clean URLs for the main pmwiki site
> > is somehow also matching on URLs for the test site? That might well do it.
> 
> Yup, I thought of that and hyphened-out the main pmwiki directory to 
> test. I also dumped the .htaccess in root, which is set-up to support 
> Joomla - which I plan to replace with pmwiki, which is mightily 
> impressive, but I digress.
> 
> > If the the string 'pmwiki' is being matched in the wrong context, that
> > might explain your results.
> 
> It has to be that doesn't it? The fact that it's not bombing out or 
> reporting errors, but pointing at the pmwiki home. And for only the 
> pmwiki group... and only in the home wiki. It's definitely one of 
> "those" :-|
> 
> Thanks for taking the trouble to read and digest my problem and offer 
> your thoughts. Much appreciated. Tomorrow, I will sync Apache with my 
> laptop and delete everything bar my test pmwiki setup and see what 
> happens. That will remove all non-Userdir data and hopefully cause a 
> crash. In this case, that would be ideal.

No joy with a clean test Apache install, so I took at look at the 
rewrite logs.

This showed something. Starting at Main/Home and going to the sandbox - 
which works - yielded:

add path info postfix: C:/Documents and Settings/Marc/My Documents/My 
Website/pmwiki/Main -> C:/Documents and Settings/Marc/My Documents/My 
Website/pmwiki/Main/WikiSandbox

(This is only the first line of the rewrite log.)

Returning to Main/Home and going to PmWiki/DocumentationIndex yielded

add path info postfix: C:/Documents and Settings/Marc/My Documents/My 
Website/pmwiki/pmwiki.php -> C:/Documents and Settings/Marc/My 
Documents/My Website/pmwiki/pmwiki.php/DocumentationIndex

Note how, in the latter case, the PmWiki group name has changed to 
pmwiki.php. And, of course, the URL is no longer going to find its 
target.

By way of comparison, here's the result of going to 
PmWiki/DocumentationIndex from a farm wiki home page.

add path info postfix: C:/Documents and Settings/Marc/My Documents/My 
Website/pmwiki/marc/PmWiki -> C:/Documents and Settings/Marc/My 
Documents/My Website/pmwiki/marc/PmWiki/DocumentationIndex

So it seems that something is changing PmWiki to pmwiki.php in the URL 
before the rewrite process begins. (This occurs for all pmwiki group 
URLS and no others.)

Any ideas?

-- 
Best,
Marc





More information about the pmwiki-users mailing list