[WordPress] 外掛分享: Remove HTTP: Fix Mixed Content Warning

首頁外掛目錄 › Remove HTTP: Fix Mixed Content Warning
WordPress 外掛 Remove HTTP: Fix Mixed Content Warning 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
4,000+
安裝啟用
★★★★
4.6/5 分(20 則評價)
2171 天前
最後更新
問題解決
WordPress 3.0.0+ PHP 4.3+ v2.2.0 上架:2016-09-04

內容簡介

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 頁面。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon