Added support for subdirectories by implementing getBaseUrl() from ZF