This plugin makes all attachments urls stored in database relative to the WP_SITEURL url.
As of April 2026, Simple Relative Content is a WordPress uri plugin with 10 active installations and a 5/5 rating from 1 reviews. It has been downloaded 2.1K+ times in total. Requires WordPress false+ and PHP false+. Available on WordPress.org since 2012. Last updated 11 years ago — may have compatibility concerns. Top alternative: WP Custom HTML Page.
When you use the WordPress editor to insert a media in the content field it stores a reference to the absolute path.
So if you change the location of your site (by switching from staging to production environment for example) all your paths will be incorrect.
This plugin stores relative pathes in the db instead of an absolute path.
Beware: this plugin must be activated BEFORE inserting a media into the content field. It has no effect on the medias stored before the activation.
It’s mostly based on the WP_SITEURL constant which should be defined in the wp_config.php file. If this constant isn’t defined it uses the “siteurl” option value instead.
If the plugin detects that you access the website from another location than the “siteurl” defined initially i…
| WordPress | false+ requiredTested up to 3.9.40 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.