How to use Apache to redirect all traffic from http to https - LinuxConfig.org

If your website uses Apache and SSL, there's not much reason to keep using HTTP with your website. Having both HTTP and HTTPS just creates duplicate content, as now any given page will be accessible through two technically different URLs.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-use-apache-to-redirect-all-traffic-from-http-to-https