Relative URL

plugin banner

A plugin applies wp_make_link_relative function to links (posts, categories, pages and etc.) to convert them to relative URLs. Useful for developers w

Author:Tunghsiao Liu (profile at wordpress.org)
WordPress version required:2.1.0
WordPress version tested:5.8
Plugin version:0.1.8
Added to WordPress repository:16-09-2012
Last updated:11-08-2021
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, %:84
Rated by:26
Plugin URI:https://sparanoid.com/work/relative-url/
Total downloads:100 547
Active installs:4 000+
plugin download
Click to start download

Relative URL applies the wp_make_link_relative function to links (posts, categories, pages, etc.) to convert them to relative URLs. Useful for developers when debugging local WordPress instance on a mobile device (iPad, iPhone, etc.).

Notice: This plugin SHOULD be used for local development only. I haven’t tested on a production environment; it may work with some issues, like unwanted URLs in RSS feed or sharing URLs are replaced with relative URLs, etc.

More information please visit my site.

For example:

http://localhost:8080/wp/

Will be converted to:

/wp/

And..

http://localhost:8080/wp/2012/09/01/hello-world/

Will be converted to:

/wp/2012/09/01/hello-world/

And..

http://localhost:8080/wp/wp-content/themes/twentyeleven/style.css

Will be converted to:

/wp/wp-content/themes/twentyeleven/style.css

Then after activating this plugin, you can simply access your local instance using http://10.0.1.5:8888/wp/ on your iPad or other mobile devices without having styles and navigation issue.


FAQ
ChangeLog