Redirecting to SSL using Apache’s htaccess

Just edit the .htacess file and add the below lines.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ http://www.test.com/$1 [L,R=301]
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.