[pmwiki-users] Handling canonical URLs (ie don't allow variable case in urls)
lists at wildgooses.com
Mon Feb 8 16:12:01 CST 2010
On 08/02/2010 20:31, Peter Bowers wrote:
> On Mon, Feb 8, 2010 at 8:21 PM, Ed W<lists at wildgooses.com> wrote:
>> Can someone please give me some suggestions on how to hook into PmWiki
>> to make this happen? Actually, more to the point I'm unsure where the
>> case correction is actually happening (eg see URL examples above) -
>> given that I'm on a unix based system with case sensitive URLs, it's not
>> clear why it's finding files with different cased names?
> I believe it's happening in MakePageName().
> Note this set of lines:
Thanks - I had guessed this was part of it (actually I have this
function heavily customised). However, I can't see how it's used on the
incoming page request?
My thought was to compare the output of MakePageName with the incoming
request and if they don't match to do a redirect to keep it canonical?
Grateful for further pointers on how to dig deeper into the request
More information about the pmwiki-users