Categories
Drupal Development Resources

Force https via .htaccess

Sometimes it’s easier to more convenient to redirect via htaccess than the Secure Pages module when you want all pages to be secure. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}