apache redirect http to https and www to non www

后端 未结 6 1621
陌清茗
陌清茗 2020-11-27 18:03

basically what i want is redirect al request to use HTTPS instead of http

I have this in my htaccess so far and it worked great: Code:



        
6条回答
  •  有刺的猬
    2020-11-27 18:37

    You will have to re-issue your certificate for both www and without www.

    If someone connects to your site via a domain name that is not included in your common name, they will receive a warning.

    The ssl negociation process happens before any response from the server (in your case, a redirection), so in all cases, your visitors will receive a warning when using a domain that is not in your common name.

提交回复
热议问题