HTML

Force https navigation

Force website navigation on https protocol with a htaccess file.

Put this code on an .htaccess file on the root of the server

RewriteEngine On
Options +FollowSymlinks

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yourdomain.io/$1 [R,L]

Opion2:

RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]