1
我已經安裝在域的SSL證書我與測試和SSL運作的,你可以在這裏看到:https://naughtyrobot.co.uk/ - 我也驗證了我的域名在這裏有一個有效的SSL證書:https://www.ssllabs.com/ssltest/analyze.html?d=naughtyrobot.co.uk的.htaccess HTTPS重定向失敗
我已經在根目錄下創建一個.htaccess文件,它看起來像這樣:
RewriteCond %{ENV:SSL} ^$ [OR]
RewriteCond %{HTTP_HOST} !^www\.naughtyrobot\.co.uk
RewriteRule (.*) https://naughtyrobot.co.uk/$1 [R=301,L]
我檢查,以確保根是正確的通過看:etc/apache2/sites-enabled/000-default-le-ssl.conf
但是,如果你訪問naughtyrobot.co.uk我Ť似乎只是路線標準http://