Creates relative URLs for images when inserting into posts.
As of April 2026, Relative Image URLs is a WordPress url plugin with 1.0K+ active installations and a 4.2/5 rating from 5 reviews. It has been downloaded 23K+ times in total. Requires WordPress 2.0.2+ and PHP false+. Available on WordPress.org since 2010. Last updated 11 years ago — may have compatibility concerns. Download volume is stable this week. Top alternative: Custom Post Type Permalinks.
When inserting an image into a post, WordPress uses absolute URLs to the files. This plugin overrides that functionality and forces it to use relative URLs.
For example:
WordPress Default:
http://www.example.com/wp-content/uploads/2013/04/example.jpg
Plugin Override:
/wp-content/uploads/2013/04/example.jpg
This is particularly useful if you plan on switching domains ever as well as reducing HTTP requests.
It kills all custom images sizes defined with “add_image_size” in functions.php.
Useful and functional.
Was having trouble with the Media images being statically http://. Thought about updating the image path in the db directly, and that would probably work but would need done every time an image is changed. This was nice as it replaces the image paths for the site without need of intervention. It seemed to work on prior image uploads too. Just installed plugin and the mixed media message our customers were concerned about just disappeared!
It wont retroactively fix your links, so be sure to install this early on in the game.
This plugin quickly solved our SSL problems. Now all media files use https:// protocol, and the mixed content error message and the annoying exclamation mark in Firefox disappeared. Thanks for the nice work.
| WordPress | 2.0.2+ requiredTested up to 4.0.38 |
| PHP | false+ required |
…and 2 more changes
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.