01 Sep
Posted by SE as Ask Your Host, Security
|
|
Print This Post
I was working on a site that needed SSL setup for credit card form submission.
SSL ( Secure Socket Layer) is a protocol that allows data to be encrypted when transmitted from the browser to the server.
Setting up SSL on the server requires a certificate to be installed. I usually buy the certificate from godaddy.
On some sites, you will see only certain pages redirect the page (URL) from http to https. I personally prefer to have https on the entire website and the best way to set it is on the server’s .htaccess file for the following reasons:
1- You don’t have to deal with changing your scripts or adding extra html or php redirect.
2- If you have to test the script on your local machine or on a server that isn’t SSL enabled, you don’t need to make changes to it.
3- It more secure.
Adding the following server redirects should do it. Just save the following in .htaccess under your root directory:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
You can learn more about it here: http://en.wikipedia.org/wiki/Https. Wikipedia explains the process in simple “plain english”.
Regards.
Popularity: 13% [?]
(About)
Welcome to my blog! I believe that non techie people should be able to create a web presence affordably and with minimal effort!
A unique ebook that will help you better secure your wordpress site.
Strongly recommended, specially if you have installed your wordpress site using cPanel's Fantastico.
247 of most commonly used phrases and keywords used in the online business world. A great addition to your online references.
Learn useful tips to having your service or product better recognized. This report includes 77 useful tips and simple changes that can make a huge difference to your online business.
RSS feed for comments on this post · TrackBack URI
Have your say, your comments are very welcome.
I appreciate you taking the time to comment, please consider the following when commenting:
- Use your real name or a pseudonym you frequently use.
- Be relevant and contributive to the post.
- If you want to ad a link, pick a relevant link to the post.
Please note: I reserve the right to edit, censor, and/or delete any comment.