I recently had an SSL certificate installed on my server and was given the relevant code the server needs, I assume, in the .htaccess file:
RewriteCond %{ENV:SECURE_REDIRECT} !=on
RewriteEngine On
RewriteCond %{ENV:SECURE_REDIRECT} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}I don’t don’t know what to do with REQUEST_URI, which—I’ve been told—is the key to this.
I’ve tried the add-ons “ForceSSL” and “DMForceSSL,” but I’ve had no luck in getting just one pass-protected page on my domain to be in https. ForceSSL broke the other domains running on my server (my SSL certificate is for my main domain only), and while the DMForceSSL plugin leaves the other domains alone, I can’t get the suggested tags to specify a single specific template to force SSL.
Any easy way to do this?