Redirect your visitors to SSL webpage!

in #apache7 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/

Coin Marketplace

STEEM 0.14
TRX 0.23
JST 0.032
BTC 84231.14
ETH 2108.52
USDT 1.00
SBD 0.63