Redirect your visitors to SSL webpage!

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@luciancovaci·
0.000 HBD
Redirect your visitors to SSL webpage!
<img src="https://steemitimages.com/0x0/https://steemitimages.com/DQmeUopNdPZ89XRjXQXocdDUhD25mqTFrEkE5ShdEtmnyYZ/free-ssl.png" alt="free-ssl.png" />

After we've been able to get a <a href="https://steemit.com/linux/@luciancovaci/how-can-you-get-a-free-ssl-certificate-for-your-site" target="_blank">free SSL certificate</a> for our page now, we need to redirect to the SSL page.
<a href="http://httpd.apache.org/docs/2.4/rewrite/avoid.html" target="_blank">According to Apache</a>, the best way is to avoid using <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html"><code>mod_rewrite</code></a> !
Example:

<pre>&lt; VirtualHost *:80 &gt;
ServerName webmail.biotree.tk
Redirect "/" "https://webmail.biotree.tk/"
&lt; /VirtualHost &gt;

&lt; VirtualHost *:443 &gt;
    ServerName webmail.biotree.tk
    # ... SSL configuration goes here
&lt; /VirtualHost &gt;
</pre>

I think this is the easiest way to redirect SSL from a non-SSL page.<br /><center><hr/><em>Posted from my blog with <a href='https://wordpress.org/plugins/steempress/'>SteemPress</a> : http://blog.ceae.info/redirect-your-visitors-to-ssl-webpage/</em><hr/></center>
👍 , , , , , ,