Forcing https (ssl) on .htaccess file

hostnasi com
Dec 30, 2020

To force the HTTPS connection on your website, add the following lines inside the website’s .htaccess file:

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

Need more clarification on this matter write to us via support@hostnasi.com

--

--

hostnasi com

Giving You Internet freedom through hosting,domains, security, & more — everything you need to be online.