Relative Image URLs Relative Image URLs

Relative Image URLs

Created by: Scott Werner

Rating:
Downloaded: 21k times

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.

Categories