My subdomain is setup with `/<galleryname>` which of course needs to be the folder where your Zenphoto is. If it is in a folder it runs also directly in the root btw.
But my main domain does not link there, too, and I actually never tried that. I guess I can't answer that currently.