[WordPress] 外掛分享: Domain Sharding

首頁外掛目錄 › Domain Sharding
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
50+
安裝啟用
★★★★
4/5 分(7 則評價)
2961 天前
最後更新
問題解決
WordPress 2.8+ v1.2.1 上架:2014-02-04

內容簡介

我們需要決定子網域模式(例如: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 優化的更多信息

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Domain Sharding」→ 直接安裝(推薦)

原文外掛簡介

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon