How to force htpp to https in linux?



Is .htaccess an option? If so, see this link:


(.htaccess is pretty much always available with most of the popular web servers, as far as I know.)
 
Setup the SSL certs for port 443.
Disable all traffic to port 80. It's different for different web servers.
 


Top