Redirect HTTP traffic to HTTPS with .htaccess

Now that I have made the switch to SSL, I needed to make sure that any traffic that hits the website uses SSL.

A quick and easy way to do this is to use the .htaccess file and add the following into it:

Make sure that the following two lines are right below the RewriteEngine line:
RewriteCond
RewriteRule

Leave a Reply

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

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