Redirect your visitors to SSL webpage!

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 !

< VirtualHost *:80 >
Redirect "/" ""
< /VirtualHost >

< VirtualHost *:443 >
    # ... 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 *

4 + 7 =

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