2017-03-01 47 views
2

所以我有一個網站使用SSL,用戶拿起了我沒有注意到的東西。一旦用戶點擊鏈接,該網站就會顯示SSL,當用戶刷新網站時,SSL將消失。但是當他們點擊網站上的任何鏈接時,它會再次出現。有人刷新頁面時,SSL只會消失。使用SSL保護網站,但刷新SSL消失時

網站上的所有鏈接的安全 Secure

網站SSL不清爽的頁面 Non-Secure

Options +FollowSymLinks 
RewriteEngine on 
RewriteBase/

# Redirect non www. to www. 
RewriteCond %{HTTP_HOST} !^www\.website\.co\.uk 
RewriteRule (.*) https://www.website.co.uk/$1 [R=301,L] 

# Redirect http to https editor nathan 18/01/2017 
RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 

# Remove trailing slash 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)/$ /$1? [R=301,L] 
+0

您是否嘗試過類似的Firefox開發者工具 - >網絡,看看有什麼是頁面加載/刷新時發生? – JustBaron

+1

它可能會導致許多事情,如來自http的資源加載而不是https –

+0

我會嘗試Firefox的選項,也許更改http改爲https。親切的問候 – Whitena

回答

1

,我決定做谷歌瀏覽器F12檢查 - >網絡和我注意到,

M ixed內容該網站包含HTTP資源。重新加載頁面來記錄HTTP資源

請求我注意到了的favicon.ico http來代替https:立即固定

<link rel="icon" href="https://www.website.co.uk/favicon.ico" type="image/x-icon"> 
1

後出現它可以通過加載的內容引起不HTTPS

這裏是一個例子

<link rel="stylesheet" type="text/css" href="http://example.com/linkto.css"> 

改變它

<link rel="stylesheet" type="text/css" href="https://example.com/linkto.css"> 

<link rel="stylesheet" type="text/css" href="//example.com/linkto.css"> 
+0

很多幫助,謝謝! – DNinja21

+0

@ DNinja21不客氣 –