WP-Portability

plugin banner

WP-Portability is a plugin designed to quietly make your site more portable.

Author:Sean Fraser (Plank Design Inc.) (profile at wordpress.org)
WordPress version required:3.1
WordPress version tested:4.0.38
Plugin version:1.1.1
Added to WordPress repository:22-07-2014
Last updated:26-10-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:60
Rated by:2
Plugin URI:http://plankdesign.com/wp-portability
Total downloads:1 364
Active installs:10+
plugin download
Click to start download

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

FAQ