SSL

Redirect site to https

Published by burgerboydaddy on Tue, 10/23/2012 - 10:45

Tags 

There are plenty of times I want to require users to be accessing a site only via SSL.

And that can be easy done using .htaccess


RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Pages