SSL on single page with WordPress one-click install

Posted June 18, 2014 5.1k views
Hey. I've created a droplet with the WordPress one-click install on Ubuntu 14.04. I'm running an e-commerce site and I'm hoping to secure the checkout page with SSL. I've found this tutorial, but it seems to be for securing an entire site, which I don't want to do. I'm hoping to use the WordPress HTTPS plugin to secure just checkout page, so the SSL security needs to optional - all of the site will be accessed using http://, except for the one page in question which will be accessed via https://. Anyone have any ideas? This is new to me, I'm competent but not when it comes to securing the site via SSL. Sorry if I've missed anything! :)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
Am not an Apache user but I think this should work. First generate your certificate and since your own an e-commerce website I suggest you use See here how to for the certificate: Then create your .htaccess and add this
RewriteEngine On
RewriteBase /
# force https
RewriteCond %{HTTPS} =off
RewriteRule ^(checkout|cart)\.php$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
by Etel Sverdlov
This tutorial explains how to create a self-signed SSL certificate, how to add it to your server, and how to configure the SSL file to display the certificate to the world. A SSL certificate is a way to encrypt a site's information and create a more secure connection. Certificate Authorities can issue SSL certificates that verify the server's details while a self-signed certificate has no 3rd party corroboration. This tutorial is written for Apache on an Ubuntu server.