Some CMS’s allows you to easily activate and use the system with SSL option. For example in WordPress you just have to enter https:// in both fields available under dashboard: Settings / General.

Yet sometime you are not using such friendly CMS or maybe even you are a purist using html files based website. What you should do then?

Easy. Just create a file named .htaccess in the root of your website directory containing couple lines you will find below. That’s it.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Author

I’m Michael , a tech geek. Join me on the journey through interwebs to find latest news, tips and hints.

Write A Comment