Routing with a shared certificate

I have a site that uses a shared SSL certificate. The domain for most parts is, but the SSL areas must be addressed as


How do I deal with this?

I can use the full url to get to the controllers, as in for example


but nothing else gets found - no stylesheets, images, or layouts. How do I handle the routing?