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:
1 2 3 |
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
Make sure that the following two lines are right below the RewriteEngine
line:
– RewriteCond
– RewriteRule