simply add this rewrite rules to the starting of the codes in .htaccess files. You can Change from http to https in your website through htaccess
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
November 28, 2017
Gokul Deepak S
simply add this rewrite rules to the starting of the codes in .htaccess files. You can Change from http to https in your website through htaccess
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

About the author
Gokul Deepak is a DevOps engineer focused on building reliable cloud systems through automation, observability, and disciplined infrastructure design. He shares practical insights from real-world production environments, helping engineers build systems that scale with clarity and confidence.