前言介紹
- 這款 WordPress 外掛「Domain Sharding」是 2014-02-04 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 50 個安裝啟用數。
- 上一次更新是 2018-03-04,距離現在已有 2618 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.8 以上版本才可以安裝。
- 有 7 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
cdn | wpo | speed | optimization | domain sharding |
內容簡介
我們需要決定子網域模式(例如:http://cdn-#.domain.tld )的替換方式和我們想要使用的最大子網域數量(例如:5)。
這個模式會將像這樣的 URL 轉換為新的 URL 結構:'http://cdn-X.domain.tld/img/source1.jpg',其中 X 的範圍從 1 到 5(最大值)。
注意:如果您在使用新地址訪問圖像時遇到困難,因為 WordPress 要求您註冊該域名,那麼您必須在文件 wp-config.php 中插入以下行。
include_once(ABSPATH.'wp-content/plugins/domain-sharding/domain-sharding-alias.php');
然後您需要確保在插件目錄中的別名文件夾中設置寫入權限。
注意:您需要在 DNS 面板中手動創建子域的新 A 記錄。 它們應具有與主域相同的 IP 地址。
訪問Seocom 網站以獲取有關 SEO 或 WPO 優化的更多信息
原文外掛簡介
We need to determine the subdomain pattern (ex: http://cdn-#.domain.tld ) substitution and the maximum number of subdomains we want to work with (ex: 5).
The pattern will transform an url like this ‘http://www.domain.tld/img/source1.jpg’ to this new url structure ‘http://cdn-X.domain.tld/img/source1.jpg’ where X ranges from 1 to 5 (max).
NOTE: If you have trouble accessing images using the new address because WordPress asks you to register the domain then you must insert the following line in the file wp-config.php
include_once(ABSPATH.'wp-content/plugins/domain-sharding/domain-sharding-alias.php');
Then you need to be sure to set write permissions to the aliases folder located within the plugin directory.
NOTE: You’ll need to manually create the new A records for the subdomains in your DNS panel. They should have the same ip address of your main domain.
Visit the Seocom website for more information about SEO or WPO optimization
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Domain Sharding」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Parallelize Downloads 》這個外掛可以為你的 WordPress 圖片開啟Parallelized Downloads / Domain Sharding的功能。, 如果你不想支付 CDN 費用,但是你的網站有許多圖片,那麼這個外...。