Redirect your visitors to SSL webpage!

in apache •  7 years ago  (edited)

free-ssl.png

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/

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!