Forum Moderators: phranque
I'm not super familiar with htaccess, particularly when it comes to SSL. I have a site, www.mydomain.com, with a donation page that I want to protect with SSL. The hosting company I have gives me a shared SSL cert to use. I've applied the cert to a subdomain I have named secure.mydomain.com. To apply the cert, the hosting company says to add the following to my .htaccess:
RewriteCond %{SERVER_PORT}!^443$
RewriteRule ^(.*)$ [secure.mydomain.com...] [R]
This does not appear to work. I figure I need to alter the RewriteCond in some fashion, but I'm not sure how. Also, how does this invoke the cert? Is it just by virtue of making the request via https? Sorry for my ignorance, this is uncharted waters for me.