The problem seems to be that Connect assumes it has the whole directory structure to itself and keeps climbing out of the redirection scope.

I'd like to clean up my address space. Right now the only way I can get people to my webmail is by giving them the address of a php redirection script that forwards them to Connect running on a non-standard port.

Kerio discussion forums are intended for open communication between forum
members and may contain information and material posted by members which may
be useful in learning about Kerio products. The discussion forums are not
intended to provide technical support for any specific product. Any
information implied or expressed in the discussion forums is that of the
posting member. Kerio is in no way responsible for the information posted in
the forums, or its accuracy. Kerio employees may participate in the
discussions, but their postings do not represent an offical position of the
company on any issues raised or discussed. Kerio reserves the right to
monitor and maintain the forums to promote free and accurate exchange of
information.