
內容簡介
Remove HTTP 是一個外掛,可以自動掃描並從所有連結中刪除 http: 和 https: 協議。這有助於解決網站出現 "mixed content warnings" 的問題,這種問題通常是網站資源(圖片、JavaScript 和 CSS)同時加載了 HTTP 和 HTTPS。
數據庫中的連結不會有任何更改。只需安裝和啟用插件,更改將立即生效。帶有 http:// 或 https:// 的連結將只有 //,使它們成為協議相關的 URL。以下是一個範例:
之前
<link rel='stylesheet' href='https://example.com/style.css' type='text/css' />
<script type='text/javascript' src='http://example.com/script.js'></script>
<a href="https://example.com" title="Example">Example</a>
<img src="http://example.com/image.jpg" width="150" height="50" />
之後
<link rel='stylesheet' href='//example.com/style.css' type='text/css' />
<script type='text/javascript' src='//example.com/script.js'></script>
<a href="//example.com" title="Example">Example</a>
<img src="//example.com/image.jpg" width="150" height="50" />
轉換為相對 URL
在「常規設置」下方有一個選項,可以將內部連結轉換為相對URL。
在 GitHub 上貢獻
想要幫助改進這個插件?請到我們的 GitHub 頁面。
外掛標籤
開發者團隊
② 後台搜尋「Remove HTTP: Fix Mixed Content Warning」→ 直接安裝(推薦)
原文外掛簡介
Remove HTTP is a plugin that automatically scans and removes both http: and https: protocols from all links. This helps resolve websites that are having “mixed content warnings” which is when the website has assets (images, JavaScript, and CSS) loading both HTTP and HTTPS.
No changes to the links are made in the database. Simply install and activate the plugin and the changes will be immediate. Links that have http:// or https:// will only have //, making them protocol relative URLs. Below is a before and after example.
Before
Example

After
Example

Switch to Relative URLs
There is an option (under the General settings) to change internal links to relative URLs.
Contribute on GitHub
Want to help improve this plugin? Head over to our GitHub page.
