Relative URL for Img and A Tags

plugin banner

This plugin will filter the content of your posts and pages to remove the root of the domain from links and image sources.

Author:EdesaC (profile at wordpress.org)
WordPress version required:4.5.3
WordPress version tested:5.5.5
Plugin version:1.0.3
Added to WordPress repository:29-06-2016
Last updated:22-11-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:
Total downloads:3 935
Active installs:100+
plugin download
Click to start download

This plugin will remove the root of the domain from links and image sources. This means that it will leave the relative URL on your image and links. This is useful if you are installing your wordpress website on a subfolder which you will move on the main domain.

You can move your site to a different subdomain, subfolder, parent folder, etc., without having to edit image sources and link URLs.

So, http://webdev-tuts.com/wp-content/uploads/2016/05/svggraph-pie-graph.jpg would become /wp-content/uploads/2016/05/svggraph-pie-graph.jpg

Note: We haven’t tested the plugin on any page builder yet.

Features

  • removes the the domain name on links for internal links
  • removes domain from on image sources for images located in the server

ChangeLog