SyntaxFix
Write A Post
Hire A Developer
Questions
Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]