# Routing with a shared certificate

**URL:** <https://www.ruby-forum.com/t/routing-with-a-shared-certificate/120705>\
**Category:** Rails\
**Created:** [November 19, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/routing-with-a-shared-certificate/120705 "2007-11-19T23:49:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![george\_b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ecb155/32.png) [@george\_b](https://www.ruby-forum.com/u/george_b)\
**Post date:** [November 19, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/routing-with-a-shared-certificate/120705/1 "2007-11-19T23:49:15Z")

</div>

I have a site that uses a shared SSL certificate. The domain for most  
parts is [mydomain.com](http://mydomain.com), but the SSL areas must be addressed as

[https://hostdomain/secure/mydomain.com/](https://hostdomain/secure/mydomain.com/)

How do I deal with this?  
I can use the full url to get to the controllers, as in for example

[https://hostdomain/secure/mydomain.com/items/](https://hostdomain/secure/mydomain.com/items/)

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