WordPress.org

Plugin Directory

!This plugin hasn't 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.

Root Relative URLs

Converts all URLs to root-relative URLs for hosting the same site on multiple IPs, easier production migration and better mobile device testing.

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Add the following entries to your wp-config.php file before the "That's all, stop editing!" comment:

    define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
    define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
    define('WP_CONTENT_URL', '/wp-content');
    define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST']);
    
  3. Activate the plugin through the 'Plugins' menu in WordPress Admin

  4. Save your permalink settings twice in a row (Admin > Settings > Permalinks : Save Changes) x2
  5. You're done! Now you can happily browse and manage your site from any URL, including an IP address if you wish.

Requires: 3.2.1 or higher
Compatible up to: 3.5.2
Last Updated: 2013-3-9
Active Installs: 40,000+

Ratings

2.9 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
0,1,0
100,1,1 100,1,1 100,1,1
50,2,1
0,1,0
67,3,2
100,1,1
50,2,1
0,1,0
0,1,0
100,1,1
0,1,0