Loading...
banner plugin Image
woo-image

Root Relative URLs

By MarcusPope

Description

This WordPress plugin converts all URL formats to root-relative URLs. This enables seamless transitioning between staging and production host environments and allows for debugging and testing from mobile devices without using risky tactics.

With Root Relative URLs, you can browse your development site from various local addresses without worrying about links redirecting you back to your site's URL.

The plugin modifies tinyMCE hooks so that links and media embedded with built-in tools will only insert URLs from the root of your site. This ensures that when you push content changes to a staging or production environment, they reference the correct target.

It supports path-based MU Installations but does not support domain-based MU sites due to architectural deficiencies in WordPress core.

Version 1.5 fixes an infinite redirect problem caused by a core bug in WordPress. If you have issues with the more tag or permalinks for custom post types, please refer to the FAQ for support.

Version 2.2 allows you to add certain URLs or partial URLs to a blacklist, meaning dynamic absolute URLs will be used instead of root-relative URLs for displaying content, which can be configured on the General Settings page.

Other Notable Features

Here are a few other notable features of this free Root Relative URLs plugin.

check-fill
root-relative urls
check-fill
url conversion
check-fill
site migration

FAQ

  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.

Contributors and developers

“Root Relative URLs” is open source software. The following people have contributed to this plugin.

WPS
Exclamation-Image

6.71

Average

Star-Image

Ratings

2.9 out of 5 | 20
History-Image

Version

2.3
calendar-Image

Last updated

8 years ago
Star-Image

Active installations

6,000+
Star-Image

WordPress version

3.5.2 or higher
php-Image

PHP version

or higher
translate-Image

Languages

0

Tags

Admin,Content,Links,Multisite,Url