Redirect your visitors to SSL webpage!

https://steemit-production-imageproxy-upload.s3.amazonaws.com/DQmeUopNdPZ89XRjXQXocdDUhD25mqTFrEkE5ShdEtmnyYZ

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

8 + 4 =


This site uses Akismet to reduce spam. Learn how your comment data is processed.