[Klone-users] Getting the URI of a non existing file from within a 404 error page

Christian Kelinski kelinski at gmail.com
Wed Jul 23 05:12:49 EDT 2008


Hi,

I recently added a 404 error page to my kloned-webapp. It works but
I've a problem with getting the URI of the non existing requested
page.

The function request_get_uri seems to be what I'm looking for, but the
string returned by it only holds the URI of the 404 page, not the one
requested. Other functions from this group
(http://www.koanlogic.com/klone/api/html/group__request__t.html)
either returning the URI of the 404 page (sometimes with the dir_root
in front of it) or NULL.

So is there any way to get this URI?

And as an additional question: I haven't tried it, but is there any
way to define more then one 404 error page, let's say one for /dirA
and all its sub dirs and another one for /dirB and all its sub dirs?

Greetings
Christian




More information about the klone-users mailing list