WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by MarcusPope v2.3

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.

Root Relative URLs

The facts

Rating
2.9★ from 20
Active installs
6k+
Price
Free
Last updated
28 Nov 2017
Added
Oct 2011
Requires WP
3.2.1
Tested up to
WP 3.5.2
Downloads
78,896

Our analysis

AI-assisted

Root Relative URLs is a WordPress plugin designed to convert all URL formats to root-relative URLs. This functionality allows for easier transitions between staging and production environments, as well as testing from mobile devices without the risk of incorrect URL redirection.

The plugin modifies the tinyMCE hooks to ensure that links and media are inserted with the correct root-relative URLs. It supports path-based Multisite installations but does not work with domain-based sites due to limitations in WordPress's architecture.

Best for: This plugin is suitable for developers working with staging and production environments in WordPress.

What it does well

  • Converts URLs to root-relative formats
  • Facilitates transitions between staging and production environments
  • Modifies tinyMCE hooks for correct URL insertion
  • Supports path-based Multisite installations
  • Allows blacklisting of certain URLs

Where it falls short

  • Does not support domain-based Multisite sites
  • Last updated in November 2017, may not be compatible with newer WordPress versions
  • Average rating of 2.9 out of 5 from 20 ratings

Verdict

Root Relative URLs offers a specific solution for managing URLs in development and production settings, but its outdated status and mixed ratings may warrant caution.

From the developer

MarcusPope's own description of Root Relative URLs, lightly tidied.

A WordPress plugin that converts all URL formats to root-relative URLs to enable seamless transitioning between staging/production host environments and debugging/testing from mobile devices, without the use of hackish tactics like textual find-replace strategies or risky hosts/NAT spoofing strategies.

With Root Relative URLs you can browse your development site from http://localhost/ or http://127.0.0.1/ or from a named network resource like http://mycomputername/ without worrying about links redirecting you back to your site’s URL.

This plugin also modifies the tinyMCE hooks so links and media embedded with built-in tools will only insert URLs from the first forward slash after the domain (i.e. the root of your site.) This means when you push content changes to a staging or production environment they are guaranteed to reference the correct target instead of accidentally referencing a production resource in development or, worse-yet, a development-exclusive resource in production.

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

Version 1.5 fixes an infinite redirect problem that is a result of a core bug in WordPress. If you have problems with the <!–more–> tag or permalinks for custom post types, please read the FAQ or new Install Steps for support.

Version 2.2 allows for adding certain URL’s or partial URL’s to a blacklist, meaning I won’t use root relative urls, but dynamic absolute URLs instead for displaying content. This will fix problems with 3rd party plugins, and can be configured on the General Settings page.

Arbitrary section

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for moving sites.

All-in-One WP Migration and Backup

Trusted by 60M+ sites: The gold standard for WordPress migration and backup. Migrate, backup, and restore your...

Free 5M+ installs 4.5★ (7,664)
Duplicator

The best WordPress backup and migration plugin. Quickly and easily backup ,migrate, copy, move, or clone your...

Free 1M+ installs 4.9★ (4,929)
WPvivid

WPvivid

93

All-in-one WordPress backup, migration and staging plugin — schedule automatic backups, restore in one click,...

Free 900k+ installs 4.9★ (1,536)
Migrate Guru

Effortlessly migrate, clone, or transfer your WordPress site to over 5,000 web hosts with Migrate Guru, truste...

Free 200k+ installs 4.9★ (1,633)
WP STAGING

WordPress backup plugin: backups, restore &amp; migration in minutes. Clone or duplicate your site, test updat...

Free 100k+ installs 4.8★ (2,464)