R
by MarcusPope 2.9 (20 reviews)

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 ranks #2,916 among WordPress.org plugins with 6,000+ active installations, is #36 of 628 in the Multisite category, a 2.9/5 rating from 20 reviews, and was last updated Nov 28, 2017. Data from WordPress.org, refreshed twice daily — see methodology.

Tested up to WP 3.5.2 (Current: 7.1)
v2.3 Current Version v2.3
Updated 8 years ago Last Update on 28 Nov, 2017
Refreshed 6 hours ago Last Refreshed on
#36 of 628 in Multisite Top 5% by installs Downloads -16% this week No update in over a year
View on WordPress.org
Rank
#2,916
No change
Active Installs
6K+
-6.9%
KW Avg Position
N/A
No change
Downloads
79.1K
+5 today
Support Resolved
0%
No change
Rating
58%
Review 2.9 out of 5
2.9 (20 reviews)

Next Milestone 7K

Total Progress 43.3%
6K+ 7K+
204
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 567 more installs to reach 7K+

Rank Changes

2,772 2,845 2,919 2,992 3,065 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
2,768 2,842 2,917 2,991 3,065 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
Current #2,916
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 20 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
0 10 20 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

2.9
20 reviews
Overall 58%
5
8 (40%)
4
0 (0%)
3
2 (10%)
2
2 (10%)
1
8 (40%)

Security History

Source: WPVulnerability

No known vulnerabilities on record for Root Relative URLs. Checked 3 days ago.

TL;DR

AI summary of the plugin's readme

This plugin is for WordPress developers and site administrators managing staging, production, and multi-environment setups. It converts all site URLs to root-relative format so links and media work correctly across different hosts, IPs, or local testing environments without hacky find-replace or DNS spoofing tricks.

  • Converts URLs to root-relative format
  • Supports multi-IP hosting
  • Eases production migration
  • Enables mobile device testing
  • Modifies tinyMCE link/media hooks
  • Supports path-based MU installations
  • URL blacklist for absolute URLs
  • Fixes infinite redirect bug

Frequently Asked Questions

Common questions about Root Relative URLs

A root-relative URL is a special type of relative URL that always starts with a forward-slash (/)
Traditional relative URLs are bad because any change to your directory structure can change where the content is relative to. But Root-Relative URLs are good because you'll always know where they start, and search engines support their usage so you'll have no problems with SEO. In fact, over 93% of the top 100 websites (according to Alexa) use root relative urls. Including Wordpres.org, Wordpress.com, Facebook.com, Twitter.com, Google.com, Wikipedia.org, Yahoo.com, Youtube.com, Amazon.com, Fickr.com etc. Most RSS Feed readers handle them appropriately (notable exceptions include FeedBurner and FeedBlitz) but my plugin takes into account their lack of HTML specification adherence. In fact, root relative URL support was established in the very first HTML specification (where it remains today) by Tim Berners-Lee (the real inventor of the World Wide Web) way back in 1993: "Where the base address is not specified, the reader will use the URL it used to access the document to resolve any relative URLs." Some Wordpress core developers think this is "doing it wrong" and "may not be supported in future content platforms like books." But I can assure you they are a core & valued aspect of the web and are not likely to go away. (I'm currently trying to explain to FeedBurner & FeedBlitz how it's their responsibility to improve their support for the RSS format and not that of others to adhere to an archaic practice like absolute urls.)
Good question. There are a number of core developers who think the design decision makes an end-user's life easier. But that's only for those who maintain one site and make all of their edits on that public site. Professional web developers would never consider making changes on a production site because if a mistake were made (yes even professionals make mistakes) then you have an immediate problem in production. Instead changes should be made on a development or staging server first, thoroughly tested, and then migrated to production as a best practice. With root-relative URLs you can make and test your changes on a staging server and then, when the changes are completely vetted, move your changes to your production server. You could do this with absolute URLs as well, but that adds an extra step of doing a search / replace of all http://staging.com/ links to http://production.com/. This extra step is not required in most content management systems. And a step that can potentially break your site depending on what widgets and plugins you are using (http://www.interconnectit.com/719/migrating-a-wordpresswpmubuddypress-website/) Additionally, unless you are a network administrator, testing your staging URL on an iPhone or other mobile device is really difficult because the recommendation for staging environments by Wordpress core members is to edit your hosts file. Only you cannot edit hosts files on a mobile device, so you'd have to resort to complex router configurations that many people don't have at their disposal on typical WIFI networks.
Unfortunately no, this plugin is designed to correct new content as it is entered via the administration panel. It will still work with your current site, but it will not alter links you have already embedded.
Absolutely! Just because you have only one site now doesn't mean you won't have a staging site in the future. If you ever decide to contract out professional development services you'll want to work with someone who does follow this process. And at that point in time it will be a nice time-saver if you have already developed content that works with root-relative links.
Sort of. It will work for path-based MU sites, but not for domain-based sites due to an architectural flaw in the Wordpress core. However, for it to work with path-based installs you
Until then this plugin will not work out of the box for MU installs. I have discovered an approach for resolving this problem without a core hack but I will need to research it before implementing the update. It will be a big ol nasty hack but it will work.

More plugins by MarcusPope

Sign In / Register

You need to sign in or register to use this feature.