All posts tagged redirect

How do I force https in URLs?

Using mod_rewrite you can redirect request from http to https URLs. Add this to your .htaccess file: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L] Make sure this appears before other rewrite rules that may prevent the redirection.