[WordPress] 外掛分享: UmanIT Update URLs

首頁外掛目錄 › UmanIT Update URLs
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
300+
安裝啟用
★★★★★
5/5 分(3 則評價)
4661 天前
最後更新
問題解決
WordPress 3.0.1+ v1.0 上架:2013-06-12

內容簡介

這個外掛在將網站從一個網域移動到另一個網域後,更新所有資料庫中的 URL,對於在開發、測試和生產階段之間切換非常有用。
為什麼需要這個外掛? WordPress 將以下項目存儲在絕對 URL 中:

- 帖子(包括頁面和自定義文章類型)、草稿
- 摘錄
- 媒體文件
- 自定義字段
- 選項(包括在 wp_options 表中的 ‘siteurl’ 和 ‘home’)
- GUID(僅用於開發)

將網站移至新的網域後,這些連結都會指向舊的網域名稱,變得過時。
先決條件
在移動網站之前,請考慮備份資料庫。然後,網站移動完成後,您需要手動更新 ‘wp_options’ 表中的 ‘siteurl’,以便訪問 WordPress 管理面板。
有關更多信息,請參見 https://codex.wordpress.org/Changing_The_Site_URL。

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin updates all URLs in the database after moving your site from one domain to another. It is useful for switching between development, testing and production stages.
Why this plugin ? WordPress stores absolute URLs in :

posts (including pages and custom post types), drafts
excerpts
medias
custom fields
options (including ‘siteurl’ and ‘home’, in wp_options table)
GUIDs (only for development)

When moving your website to a new domain, all these links will point to your old domain name and become outdated.
Prerequisite
Before moving the website, consider making a backup of the database. Then, once the site has been moved, you will need to manually update ‘siteurl’ in the ‘wp_options’ table, in order to access the WordPress Administration panel.
For further information, see https://codex.wordpress.org/Changing_The_Site_URL

延伸相關外掛

文章
Filter
Mastodon