[Solved] How to redirect HTTP to HTTPS u sing htaccess?  


admin
Posts: 83
Admin
(@admin)
Member
Joined: 1 year ago

You can automatically redirect visitors to the secured (HTTPS) version of your site to make sure your communications are encrypted by using following .htaccess file

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Share:

Please Login or Register