Forcing https

Discussion in 'Linux Support: RHEL, CentOS, SUSE etc' started by Dradden, Mar 25, 2018.

  1. Dradden

    Dradden New Member


    I am having a hard time forcing https. Here is what I have in Rewrite on the vhost:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^(?:www\.)?domain\.ca$
    RewriteRule ^(.*)${REQUEST_URI} [L,R=301]

    No errors or anything is just simply fails to redirect to the https version. What am I missing?
  2. Tishu

    Tishu Member

Share This Page