Forum Moderators: phranque
I've racked my meager brainpower to try to redirect my subdomain the the shared ssl cert of my provider but I am unable to do it.
Setup: apache2 mod_ssl / mod_rewrite
Shared SSL cert location:
[secure.myprovider.com...]
where /~account begins my public html folder.
Here's what I'm trying to accomplish:
I have setup a subdomain, secure.mydomain.com that i would like to redirect to the shared ssl cert so there are not warnings etc.
I have a similar .htaccess in /public_html/secure
SSLRequireSSL
RewriteEngine on
RewriteCond %{HTTP_HOST} ^secure.mydomain.com$
RewriteRule ^(.*)$ [secure.myprovider.com...] [R=301,L]
Works:
http://secure.mydomain.com -> redirected & ssl
Does not work:
[secure.mydomain.com...] -> certificate warning... tries to use self signed cert.
What I'd like to do is 2 fold.
1. redirect [secure.mydomain.com...] to [secure.myprovider.com...] without certificate warnings.
2. if possible make the browser url appear to be [secure.mydomain.com...]
What I've managed to do... cause several infinite recursion loops and about 1000000 server 500 errors.
Thanks
[edited by: jdMorgan at 7:34 pm (utc) on Dec. 22, 2007]
[edit reason] de-linked [/edit]
With SSL, I suspect that you will find "No redirects allowed" since this would destroy the assurance that the certificate belongs to the domain that the visitor believes he/she is visiting... Consider a redirect maliciously inserted onto a genuine SSL-secured (but hacked) site, and the reasoning may become clearer.
You'll need to get a certificate for each domain (and each subdomain) that you wish to use.
Jim