After we've been able to get a free SSL certificate for our page now, we need to redirect to the SSL page.
According to Apache, the best way is to avoid using mod_rewrite
!
Example:
< VirtualHost *:80 > ServerName webmail.biotree.tk Redirect "/" "https://webmail.biotree.tk/" < /VirtualHost >< VirtualHost *:443 >
ServerName webmail.biotree.tk
# ... SSL configuration goes here
< /VirtualHost >
I think this is the easiest way to redirect SSL from a non-SSL page.
Posted from my blog with SteemPress : http://blog.ceae.info/redirect-your-visitors-to-ssl-webpage/