
內容簡介
概述
WP-Portability是一個插件,旨在默默地使您的網站更易移植。它旨在促進移動 WordPress 安裝到另一個目錄或服務器或域名所需進行的工作。它使 WordPress 不太依賴安裝目錄和域名。
雖然任何人都可以使用 WP-Portability,但它是專為開發人員設計的。它極大地方便了開發人員小組在本地設計網站、將網站移動到測試服務器並最終推送到線上環境的工作。
功能
WP-Portability提供以下優化功能:
始終使用本地網址:移動 WordPress 安裝的最大問題可能是帖子內容中指向同一站點中其他內容(鏈接到其他頁面、上傳媒體等)的所有 URL 將會斷掉。對於大型網站來說,這可能是一個噩夢。WP-Portability通過在數據庫中將所有本地網址存儲為隱藏的短代碼,然後可以將其擴展到從任何域名/安裝目錄查看站點的正確路徑來解決這個問題。在編輯帖子時不會看到任何不同之處,但請放心,背景中會動態處理這些問題。
動態文件路徑:此插件將自動確定 WordPress 安裝路徑的 URL。這將設置 WP_SITEURL 和 WP_HOME 常數。如果在 wp-config 中已經設定了這些常數,此功能將不起作用。該功能將自動在 WordPress Multisite(網絡)上禁用,因為它將無法正常工作。
相對重寫:此插件更改了WordPress創建Apache級別的重寫的方式,始終使用相對路徑而不是絕對路徑。這可以使您通過不同的路線訪問同一安裝(例如,http://domain.com 和 http://127.0.0.1/path/to/install)。如果您使用的是WordPress Multisite(網絡)版本,則此功能將自動禁用,因為它將無法正常工作。
升級
1.0.1
修復 WordPress 4.0 中的錯誤
外掛標籤
開發者團隊
原文外掛簡介
Summary
WP-Portability is a plugin designed to quietly make your site more portable. It is to designed to facilitate the work that needs to be done to be move a wordpress install to another directory or server or domain name. It makes WordPress much less attached and dependant on its install directory and domain name.
Though anyone can make use of WP-Portability, it was designed with developers in mind. It greatly facilitates designing sites locally amongst a team of developers, moving the site to a staging server and finally pushing it live.
Features
WP-Portability provides the following optimizations:
Always local URLs: Perhaps the biggest issues with relocating a wordpress install is the fact that every url pointing to other content in the same site (links to other pages, uploaded media, etc.) in the content of posts will break. This can be a nightmare to fix for larger sites. WP-Portability solves this by storing all local urls as a hidden shortcode in the database, which it can then expand to the correct path for whatever domain/install directory you view the site from. You will not see anything differently when you edit your posts, but rest assured that things are being handled dynamically in the background.
Dynamic file paths: This plugin will automatically determine the url of your WordPress install path. This will set the WP_SITEURL and WP_HOME constants. If these are already set in wp-config, this feature will not work. This feature will automatically disable itself on WordPress Multisite installations (network), as it will not work properly.
Relative Rewrites: This plugin changes the way WordPress creates apache-level rewrites, to always use relative paths, rather than absolute paths. This will enable access to the same installation via different routes (e.g. http://domain.com and http://127.0.0.1/path/to/install). This feature will automatically disable itself on WordPress Multisite installations (network), as it will not work properly.
Upgrade
1.0.1
Fixed bug in WordPress 4.0
