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

Marc Cooper gmane at auxbuss.com
Mon Jun 19 14:57:48 CDT 2006


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.

-- 
Best,
Marc





More information about the pmwiki-users mailing list