
內容簡介
在你的免費測試網站上試用:點擊這裡 => https://tastewp.com/plugins/http-https-remover.
(這個技巧適用於 WP 存儲庫中的所有插件-只需在 URL 中替換“WordPress”為“tastewp”)
更新:此插件將再次維護!它已更改所有權,我們目前正在收集有關如何進一步改進它的想法。如果您有任何酷炫的點子,請在支持論壇中告訴我們。謝謝!
最新版本(3.0)的主要更新:
– 插件現在具有適當的設置頁面
– 修復了許多錯誤
– 代碼進行了優化,使性能大大提高
主要功能:
在前端和後端工作
使每個插件都兼容https
兼容 WPBakery&Disqus
解決Google Fonts問題
使您的網站更快
這個插件是做什麼的?
使用協議相對的URL,您只需省略資源路徑的http:或https:部分即可。瀏覽器將自動使用加載頁面時使用的相同協議來加載資源。
例如,絕對URL可以是
src="http://domain.com/script.js"
如果您從https頁面加載此頁面,則不會加載腳本-因為安全起見,不會從https頁面加載非https資源。
協議相對URL將如下所示
src="//domain.com/script.js"
如果網頁是http或https,則會加載。
提示:檢查您的“設置 -> 一般”頁面,並確保您的WordPress地址和網站地址以“https”開頭。
在說明停止編輯之前,將以下兩行添加到wp-config.php中:
define('FORCE_SSL', true);
define('FORCE_SSL_ADMIN',true);
什麼是混合內容?
混合內容是指初始HTML是在安全的HTTPS連接上加載的,但其他資源(如圖像、視頻、樣式表、腳本)則是在不安全的HTTP連接上加載的。這種現象稱為混合內容,因為同時加載HTTP和HTTPS內容以顯示相同的頁面,且初始請求是在HTTPS上安全的。現代瀏覽器會顯示有關此類內容的警告,以向用戶指示此頁面包含不安全的資源。
注:即使它們不處理敏感通信,您也應始終使用HTTPS保護所有網站。
例子
未使用此插件:
src=”http://domain.com/script01.js”
src=”https://domain.com/script02.js”
src=”//domain.com/script03.js”
使用此插件:
src=”//domain.com/script01.js”
src=”//domain.com/script02.js”
src=”//domain.com/script03.js”
如果使用緩存插件
如果該插件未按預期運行,請清除緩存以使更改生效!
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Try it out on your free dummy site: Click here => https://tastewp.com/plugins/http-https-remover.
(this trick works for all plugins in the WP repo – just replace “wordpress” with “tastewp” in the URL)
UPDATE: This plugin will be maintained again! It changed ownership and we’re currently collecting ideas how to further improve it. If you have any cool ideas, please let us know in Support Forum. Thank you!
Major updated in the latest release (3.0):
– Plugin has a proper settings page now
– Many bugs fixed
– Code optimized, causing performance to increase a lot
Main features:
Works in Front- and Backend
Makes every Plugin compatible with https
Compatible with WPBakery & Disqus
Fixes Google Fonts issues
Makes your website faster
What does this Plugin do?
With protocol relative url’s you simply leave off the http: or https: part of the resource path. The browser will automatically load the resource using the same protocol that the page was loaded with.
For example, an absolute url may look like
src="http://domain.com/script.js"
If you were to load this from a https page the script will not be loaded – as non-https resources are not loaded from https pages (for security reasons).
The protocol relative url would look like
src="//domain.com/script.js"
and would load if the web page was http or https.
Tipp: Check your Settings -> General page and make sure your WordPress Address and Site Address are starting with “https”.
Add the following two lines in your wp-config.php above the line that says “Stop Editing Here”:
define('FORCE_SSL', true);
define('FORCE_SSL_ADMIN',true);
What is Mixed Content?
Mixed content occurs when initial HTML is loaded over a secure HTTPS connection, but other resources (such as images, videos, stylesheets, scripts) are loaded over an insecure HTTP connection. This is called mixed content because both HTTP and HTTPS content are being loaded to display the same page, and the initial request was secure over HTTPS. Modern browsers display warnings about this type of content to indicate to the user that this page contains insecure resources.
Note: You should always protect all of your websites with HTTPS, even if they don’t handle sensitive communications.
Example
Without Plugin:
src=”http://domain.com/script01.js”
src=”https://domain.com/script02.js”
src=”//domain.com/script03.js”
With Plugin:
src=”//domain.com/script01.js”
src=”//domain.com/script02.js”
src=”//domain.com/script03.js”
If using Cache Plugins
If the plugin isn’t working like expected please purge/clear cache for the changes to take effect!
