Title: Relative Image URLs
Author: Scott Werner
Published: <strong>April 7, 2010</strong>
Last modified: Séptémber 4, 2014

---

Search plugins

![](https://ps.w.org/relative-image-urls/assets/banner-772x250.jpg?rev=705712)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/relative-image-urls_d2cdcc.svg)

# Relative Image URLs

 By [Scott Werner](https://profiles.wordpress.org/scottwerner/)

[Download](https://downloads.wordpress.org/plugin/relative-image-urls.2.0.zip)

 * [Details](https://su.wordpress.org/plugins/relative-image-urls/#description)
 * [Reviews](https://su.wordpress.org/plugins/relative-image-urls/#reviews)
 *  [Installation](https://su.wordpress.org/plugins/relative-image-urls/#installation)
 * [Development](https://su.wordpress.org/plugins/relative-image-urls/#developers)

 [Support](https://wordpress.org/support/plugin/relative-image-urls/)

## Description

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.

## Screenshots

 * [[
 * Shows the difference between absolute and relative image URLs in the WordPress
   post editor.

## Installation

 1. Upload the ‘No Image Link’ folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  Do I have to set any options?

Nope. It’s ready to go right out of the box.

  Why would I want relative image URLs?

A few reasons:

 * Makes it easier to move your site if you ever want to switch domains.
 * If you have an install as a development/testing version of your site that you
   migrate frequently.
 * Reduces HTTP requests, which will speed up page load time.

## Reviews

![](https://secure.gravatar.com/avatar/26c2352d3fba94a35812f64105aadce5c6dbb14bd03b6c3a6da03eda714cfa44?
s=60&d=retro&r=g)

### 󠀁[Does not work with Advanced Custom Fields images](https://wordpress.org/support/topic/does-not-work-with-advanced-custom-fields-images/)󠁿

 [Alex R.](https://profiles.wordpress.org/dreamfish/) Séptémber 3, 2016

It kills all custom images sizes defined with “add_image_size” in functions.php.

 [ Read all 5 reviews ](https://wordpress.org/support/plugin/relative-image-urls/reviews/)

## Contributors & Developers

“Relative Image URLs” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Scott Werner ](https://profiles.wordpress.org/scottwerner/)
 *   [ bluelayermedia ](https://profiles.wordpress.org/bluelayermedia/)

[Translate “Relative Image URLs” into your language.](https://translate.wordpress.org/projects/wp-plugins/relative-image-urls)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/relative-image-urls/),
check out the [SVN repository](https://plugins.svn.wordpress.org/relative-image-urls/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/relative-image-urls/)
by [RSS](https://plugins.trac.wordpress.org/log/relative-image-urls/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0

 * Fixed issue with an invalid header and directory issue which caused the plugin
   to fail install
 * Updated WordPress version compatibility to 3.5.1
 * Added a screenshot
 * Added a FAQ
 * Updated the short description to actually be short
 * Added assets and plugin banner
 * New contributor to update the plugin after it was abandoned 3 years ago

#### 1.0

 * This is the first version.

## Meta

 *  Version **2.0**
 *  Last updated **12 years ago**
 *  Active installations **1.000+**
 *  WordPress version ** 2.0.2 or higher **
 *  Tested up to **4.0.38**
 *  Language
 * [English (US)](https://wordpress.org/plugins/relative-image-urls/)
 * Tags
 * [image](https://su.wordpress.org/plugins/tags/image/)[images](https://su.wordpress.org/plugins/tags/images/)
   [link](https://su.wordpress.org/plugins/tags/link/)[relative](https://su.wordpress.org/plugins/tags/relative/)
   [url](https://su.wordpress.org/plugins/tags/url/)
 *  [Advanced View](https://su.wordpress.org/plugins/relative-image-urls/advanced/)

## Ratings

 4.2 out of 5 stars.

 *  [  4 5-star reviews     ](https://wordpress.org/support/plugin/relative-image-urls/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/relative-image-urls/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/relative-image-urls/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/relative-image-urls/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/relative-image-urls/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/relative-image-urls/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/relative-image-urls/reviews/)

## Contributors

 *   [ Scott Werner ](https://profiles.wordpress.org/scottwerner/)
 *   [ bluelayermedia ](https://profiles.wordpress.org/bluelayermedia/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/relative-image-urls/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://scottwernerdesign.com/plugins)