Apache Rewrite rule

Discussion in 'General' started by mikechacra, Aug 13, 2014.

  1. mikechacra

    mikechacra New Member

  2. srijan

    srijan New Member HowtoForge Supporter

    Hi,

    Add the entries like this

    in the apache directives field of the website settings and click on save.
     
  3. mikechacra

    mikechacra New Member

    hey

    i have tried this. this will give them a certificate error.
     
  4. srijan

    srijan New Member HowtoForge Supporter

  5. florian030

    florian030 Well-Known Member HowtoForge Supporter

    I use
    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    for redirect http to https with out any problems.

    If you see a certificate error, maybe something is wrong with your ssl-cert, too.
     

Share This Page