前言介紹
- 這款 WordPress 外掛「HTTP URLs」是 2014-05-11 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2014-05-12,距離現在已有 4010 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
mcguive7 | mightyminnow |
外掛標籤
url | http | https | change | Protocol |
內容簡介
使用簡單的 [http-url] 短碼,將任何 URL 轉換為 HTTP 或 HTTPS。
短碼
[http-url]
預設情況下,[http-url] 短碼會輸出當前文章的 URL 並轉換為 HTTP。注意:必須在循環內使用。
短碼屬性
url – 手動指定需要轉換的 URL(可在循環外使用):
[http-url url=”https://mysite.com”]
to_https – 將 URL 轉換為 HTTPS 而非 HTTP:
[http-url to_https=”true”]
PHP 使用
HTTP URLs 還提供了兩個可用於 PHP 中的函數:
hu_get_http_url( $url ); // 返回轉換為 HTTP 的 URL
hu_get_https_url( $url ); // 返回轉換為 HTTPS 的 URL
為什麼使用此外掛?
此外掛最常用的情況是與社交媒體分享/評論外掛一起使用,其中數據與特定 URL 相關聯。對於同時通過 HTTP 和 HTTPS 可見的網站,這意味著每個頁面有兩個不同的數據集被創建。HTTP URLs 為這個常見的問題提供了方便的解決方案。 了解更多 →
原文外掛簡介
Use the simple [http-url] shortcode to convert any URL to either HTTP or HTTPS.
The Shortcode
[http-url]
By default the [http-url] shortcode will output the URL of the current post converted to HTTP. Note: must be used within the loop.
Shortcode Attributes
url – manually specify the URL to be converted (can be used outside the loop):
[http-url url=”https://mysite.com”]
to_https – convert URL to HTTPS, instead of to HTTP:
[http-url to_https=”true”]
PHP Usage
HTTP URLs also provides two functions that can be used in your php:
hu_get_http_url( $url ); // Returns URL converted to HTTP
hu_get_https_url( $url ); // Returns URL converted to HTTPS
Why Use This Plugin?
The most common case for using this plugin is in conjunction with social media sharing/commenting plugins, in which data is tied to a specific URL. On sites that are visible via both HTTP and HTTPS, this means that two different sets of differing data are created for every page. HTTP URLs provides a handy solution to this common problem. Learn More →
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「HTTP URLs」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
"SEO-HEADERS-Easy" Protocol HTTP 1.1 》英文, 此外掛可發送 Last Modified、Cache Control 和 304 Not Modified 標頭 - 此為根據「客戶端 - 服務器 - 客戶端」原則發送的 HTTP 標頭。如有缺少相應標...。
TDMRep: TDM Reservation Protocol 》### 總結:, TDMRep 是一個使用者友好的 WordPress 外掛,讓您控制機器人和人工智慧(AI)如 ChatGPT 和 Bard 存取您的內容。它與 TDM 預訂協議整合,幫助您...。
Permalink History 》儲存您的 WordPress 網站歷史記錄並提供自動重新導向功能。。
Allow Skype Protocol 》Skype URIs 提供了在您的網站中插入連結的能力,當使用者按下該連結時,將啟動 Skype 應用程式。, 但是,Skype 協定未被 WordPress 加入白名單,以 skype 開...。
Protocol Relative Theme Assets 》這個外掛將註冊、佇列的 CSS 或 JavaScript URL 轉換成它們的「協定相對」等效URL。, 考慮以下示例:, 協議相對 CSS URL, protocols.io Publications Widget 》protocols.io WordPress 外掛的出版物小工具可以完全自訂並且支援響應式設計,可以顯示 protocols.io、任何用戶或組織的出版物,並透過 protocols.io API 進...。