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.
FAQ
- 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.
Contributors and developers
“Root Relative URLs” is open source software. The following people have contributed to this plugin.
WPS
6.71
Average
Ratings
2.9 out of 5 | 20Version
2.3Last updated
8 years agoActive installations
6,000+WordPress version
3.5.2 or higherPHP version
or higherLanguages
0Tags
Admin,Content,Links,Multisite,UrlOther plugins you might like
All-in-One WP Migration and Backup
By ServMask
WPS
7.72
Very Good
7.6k+reviews
active installation
Tested with
7.0Hostinger Tools
By Hostinger
WPS
7.52
Very Good
36+reviews
active installation
Tested with
6.9.4Duplicate Page
By mndpsingh287
WPS
7.63
Very Good
454+reviews
active installation
Tested with
6.9.4UpdraftPlus: WP Backup & Migration Plugin
By David Anderson / Team Updraft
WPS
7.71
Very Good
8.5k+reviews
active installation
Tested with
7.0Classic Widgets
By Tonya Mork
WPS
7.48
Very Good
269+reviews
active installation
Tested with
6.9.4Redirection
By John Godley
WPS
7.57
Very Good
698+reviews
active installation
Tested with
6.9.4