原创 http請求域名強制跳轉https

網站添加了https證書後,當http方式訪問網站時就會報404錯誤,所以需要做http到https的強制跳轉設置. ---------------一、採用nginx的rewrite方法---------------------