Redirect from to ?

Discussion in 'ISPConfig 3 Priority Support' started by JohnnyBeGood, Oct 17, 2016.

  1. JohnnyBeGood

    JohnnyBeGood Member


    So I'm using ISPconfig v3.1 and I'm having hard time to get redirect from to
    Obviously redirect from to works. I have turned on Sites > > Redirect > Rewrite HTTP to HTTPS and also triied to enter this:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    under Sites > > Options> Apache Directives but it did not make any difference.
    My question is do I have to have both above options and what else do I miss?
    Do I need change Sites > > Redirect> Redirect Type ?
    My goal is to redirect everything to https for Google SEO
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The rewrite condition that you posted will rewrite every http:// request to https://, no matter if the domain is with or without www.
  3. JohnnyBeGood

    JohnnyBeGood Member

    Thanks for taking time to reply!
    Ok, so are both Rewrite HTTP to HTTPS and what I have in Apache Directives needed?
    My goal is when is typed to be redirected to at this point no redirect is happening.

Share This Page