我已經部署我的紅寶石Rails應用程序到heroku,購買了我的SSL證書,並通過第三方提供商爲我的網站設置了https
。如何發送請求到http ...到https?
當前,對https://www.abc[dot]com
的所有請求都可以,abc[dot]com
也會被重定向到https://www.abc[dot]com
。
但是 -
1)https://abc[dot]com
結果
'網站無法達到' 在
在我的chrome瀏覽器 2)
http://abc[dot]com
結果該網站暫時不可用e,請稍後再試。
如何讓兩個網址重定向到https://www.abc[dot]com
?
我已經通過了heroku的教程,但仍無法解決此問題。