SSL Option

Discussion in 'Installation/Configuration' started by otacon, Mar 28, 2014.

  1. otacon

    otacon New Member

    Hello Everyone,

    I have two questions:

    1. I setup SSL on my primary website for the first time. HTTPS works and directs to the website, but HTTP does not. Is this expected? Can I make it so the HTTP and HTTPS version of my site is the same?

    Example: vs

    2. I would prefer to make option 1 happen for most of my site, but there are some sections/subdomains that I would like to force https, such as a store.

    I was testing this out to see it if would work for the entire site, but it does not seem to be working.
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    I am pretty sure it is correct, but I am new to Apache directives, so I would appreciate if someone could verify.

Share This Page