/ Published in: Apache
Redirect HTTP to HTTPS in Apache
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
URL: https://kinsta.com/knowledgebase/redirect-http-to-https/