PHP

How to redirect non http to https using .htaccess file

Pinterest LinkedIn Tumblr

Just put in the .htaccess file

RewriteEngine on

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

1 Comment

Write A Comment