Simple Relative Urls

This plugin makes urls (home url, js, css, images) across website relative. Works great with…

Author:Andrzej Misiewicz (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:5.8.3
Plugin version:1.0.4
Added to WordPress repository:23-01-2022
Last updated:23-01-2022
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, %:0
Rated by:0
Plugin URI:https://github.com/endriu84/simple-relative-u...
Total downloads:215
plugin download
Click to start download

Simple Relative Urls plugin changes:

  • home and siteurl
  • script src urls
  • style link urls
  • images src urls

It uses wordpress filters.
It doesn’t interact with database.
It is fast, it doesn’t search and replace generated html.
It doesn’t change hardcoded urls (for example in post content).
It is flexible.

Plugin was originally created to enable wordpress to work with a localtunnel npm package

localtunnel exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes.

Example use cases

If Your development tasks don’t involve images, don’t download them from a server. Just install the plugin and add this line of code to your wp-config.php file

define( 'SRU_IMG_SRC_RELATIVE', false );

Your local copy will then display images from their oryginal source.