Mod_rewrite display subdomain.domain.com and call domain.com/subdomain/ for SSL

Posted by Jeff H. on Server Fault See other posts from Server Fault or by Jeff H.
Published on 2012-09-08T01:39:49Z Indexed on 2012/09/08 3:39 UTC
Read the original article Hit count: 560

Filed under:
|
|
|
|

I have a website secured by a standard SSL certificate, securing a few different shops under different subdirectories. Ex. domain.com/shop1/ The shops are also accessible via a subdomain e.g. shop1.domain.com.

What I'm trying to accomplish: display shop1.domain.com to the user, while keeping all of the actual server calls as domain.com/shop1, so that the secure pages will continue to work properly. (Not sure if I'm using the proper language, exactly, I hope my point is clear.)

To be clear: my SSL is working fine, and I don't need help with that, and I don't need or want to purchase a UCC cert.

It can't be that difficult for anyone with experience with Apache. (I've spent 3 hours trying to learn about mod_rewrite. It's just not clicking.) I'm on a GoDaddy secure shared server, so please keep in mind that I'm not able to reset the server or anything.

© Server Fault or respective owner

Related posts about apache2

Related posts about ssl