Root Relative URLs
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…
Envisager une alternative
Root Relative URLs shows warning signs in 2026 — compare the alternatives below before installing. It runs on 5K+ sites, is rated 2.9/5 and was last updated 9 years ago, and scores 36/100 on our health check.
- Momentum — downloads up 59.2% vs the previous 30 days
- Mixed reviews — 2.9/5 from 20 ratings
- No update in 8 years
- Only tested up to WordPress 3.5 (latest is 7.1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Root Relative URLs stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| admin | >100 |
| content | >100 |
| links | >100 |
| multisite | >100 |
| url | >100 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★★★★★★ 2.9 from 20 reviews
About Root Relative URLs
From the official readme · v2.3Description
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
Installation
- Upload the plugin to the
/wp-content/plugins/directory -
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']); -
Activate the plugin through the ‘Plugins’ menu in WordPress Admin
- Save your permalink settings twice in a row (Admin > Settings > Permalinks : Save Changes) x2
- You’re done! Now you can happily browse and manage your site from any URL, including an IP address if you wish.
Journal de modifications
No upgrade notices
2.3
- Minor text edits
2.2
- Feature: Added blacklist entry for disabling root relative urls are specific pages. This is to help with third party plugins
- Bug fix: Added filter to prevent processing of email urls to root relative
2.1
- Bug fix: really fixed path undefined notice for urls 🙁 why @ symbol didn’t work is beyond me. I couldn’t reproduce the issue, but this was faster than debugging it.
2.0
- Enhancement: Added support for wp-include and WPML Multilingual CMS plugin. Thanks to @tfmtfm for the patch.
- Correction: Fixed changelog notes for version 1.8.
1.9
- Bug fix: Added more hooks to fix other urls. Thanks to @lcyconsulting for the solution.
1.8
- Bug fix: This patch fixes add media support. Thanks to @najamelan for the suggested solution.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Root Relative URLs alternatives
All admin plugins →FAQ
Root Relative URLs: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Root Relative URLs free?
Yes. Root Relative URLs is free to download and use from the official WordPress.org plugin directory.
Is Root Relative URLs safe to use in 2026?
Root Relative URLs shows warning signs in 2026 — compare the alternatives below before installing. It runs on 5K+ sites, is rated 2.9/5 and was last updated 9 years ago, and scores 36/100 on our health check.
How many websites use Root Relative URLs?
Root Relative URLs is active on 5K+ WordPress websites and has been downloaded 80,107 times since it launched in October 2011. It was downloaded 605 times in the last 30 days.
Does Root Relative URLs work with WordPress 7.1?
Root Relative URLs is officially tested up to WordPress 3.5.2, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Root Relative URLs last updated?
The latest version, 2.3, was released on November 28, 2017 (9 years ago).
Who makes Root Relative URLs?
Root Relative URLs is developed and maintained by MarcusPope.
What are the best alternatives to Root Relative URLs?
The most popular alternatives to Root Relative URLs are Loginizer (1M+ installs), Redux Framework (900K+ installs) and Admin Menu Editor (300K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
