Pl
wordpress plugins

ABT Relative Urls

Replaces default absolute, self-referencing urls in post content with the relative path "/" instead. Works on images and post-meta.

plugin ABT Relative Urls
4 out of 5 based on 85 user ratings.

Description

Version: 0.4

By default, WP inserts absolute urls into post content; this includes the protocol and domain, which is based on the home Admin setting. This plugin replace all self-referencing (domain) links with relative paths "/" instead. Works when inserting images into posts, and on the actual save_post action it scrubs the content, excerpt, and post_meta fields.

Especially helpful when developing on a DEV site with the intention of transfering to a LIVE domain. Please note that you should use this plugin before you start adding content, or you'll have to resave everything later.

Includes code based on Relative Image URLs plugin, which strips domain when inserting images from the Media Library. A similar idea to the following, but acts as a preventative measure (while you're working), works automatically, and handles meta fields:Go Live Update URLS
Absolute to Relative URLs
Domain Name and Path Fixer

Tags: alters, development, relative urls, urls

Tags

Requirements

Requires: 2.8 or higher
Compatible up to: 3.5.2
Last Updated: 4 years ago
Active Installs: 200+

Download URL

https://downloads.wordpress.org/plugin/abt-relative-urls.zip