How to improve your websites ranking by adding HTTPS for Free


Website Security

You may be asking yourself 'What is https and why do I need it?'
Well, standard protocol for a website is http which stands for 'Hypertext Transfer Protocol'. It is the protocol used by web servers and browsers to communicate with each other.
The extra “s” stands for Secure which means it also uses a new protocol called “SSL”. SSL stands for Secure Sockets Layer. This is used to encrypt the connection to your website, so that hackers can’t intercept any of your data.”

Why switch to HTTPS?

For a long time, only websites that sold products or collected users information needed an SSL certificate but with Google using it as a ranking factor and more people switching to https it's now important to have an SSL certificate so that you're not being outranked by websites that have one.

You can watch a video below from Google I/O which talks about them using it as a ranking factor and wanting https everywhere.


How to Set Up your Free SSL certificate

Cloudflare

If the below guide is too hard to follow then you can find an easier, updated tutorial here.

Step 1: Cloudflare account

With CloudFlare you can now make your website secure for FREE.
You can sign up to CloudFlare here.

Step 2: Scan your website and update your nameservers

Once you're signed up just enter the domain for your website and then click Begin Scan. It will then ask you to update your name servers.

Step 3: Redirecting all traffic to your secure website

You will now want to redirect all visitors to the https version, to do this you just need to add a 301 redirect to your .htaccess file.
It should look something like the below.

RewriteCond %{HTTP_HOST} ^www\.codingyoda\.com$

RewriteRule ^/?$ "https\:\/\/codingyoda\.com\/" [R=301,L]



RewriteCond %{HTTP_HOST} ^64\.34\.68\.80

RewriteRule (.*) http://www.codingyoda.com/$1 [R=301,L]



RewriteCond %{HTTP_HOST} ^64\.34\.68\.80

RewriteRule (.*) https://www.codingyoda.com/$1 [R=301,L]



RewriteEngine On

RewriteCond %{HTTPS} !^on$

RewriteRule (.*) https://codingyoda.com/$1 [R,L]


Thanks for reading.

Adding an SSL cert to your website is just one of the many features offered by Wonderful Websites.
If you're interested in having a website built then why not get a FREE website mock up.

Get A FREE Mock Up

Share This Post:
Derek McAuley

About The Author

Hi, I’m Derek McAuley, a freelance web developer, based in Dublin, Ireland. I've spent the past few years as a freelance web programmer for Wonderful Websites. I am a tireless seeker of knowledge, occasional purveyor of wisdom and also, coincidentally, a Web Developer.