Title: Relative URLs
Author: Guglielmo Pepe
Published: <strong>Maig 9, 2021</strong>
Last modified: Maig 9, 2021

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-relative-url.svg)

# Relative URLs

 By [Guglielmo Pepe](https://profiles.wordpress.org/gpepe/)

[Download](https://downloads.wordpress.org/plugin/wp-relative-url.1.0.0.zip)

 * [Details](https://bal.wordpress.org/plugins/wp-relative-url/#description)
 * [Reviews](https://bal.wordpress.org/plugins/wp-relative-url/#reviews)
 *  [Installation](https://bal.wordpress.org/plugins/wp-relative-url/#installation)
 * [Development](https://bal.wordpress.org/plugins/wp-relative-url/#developers)

 [Support](https://wordpress.org/support/plugin/wp-relative-url/)

## Description

_By default, WordPress saves the content with local domain. If you want develop 
your blog in one domain and go live in another, you need replace all URLs in the
database._

Relative URLs replace all absolute URLs with relative URLs quickly. You can move
from localhost to live domain with minimal effort, but this plugin never change 
links in database, so you can develop in stanging area or in a subdomain o in a 
sub-directory without worrying to replace URLs in the content.

**Notice: This plugin SHOULD be used for local development only.**
 **Notice: This
plugin may conflict with server based cache services (like nginx or Varnish).**

#### Benefits

 * Go live in one domain, develop in another
 * Move from one directory to another with minimal effort
 * Never change links in database
 * Switch between HTTP and HTTPS sites
 * Backup a production site from one domain, restore for testing at another domain

### Features

 * Removes the domain name on links for internal links
 * Removes the domain name from on image sources for images located in the server
 * Dont’t replace URLs in database

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/wp-relative-url` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

## FAQ

### Why do I need this?

With Relative URLs you don’t need to adjust links after change domain. When you 
change domains and you move your WordPress blog from subdomain to parent domain,
you need to change base URL in configuration and you need to replace all URLs in
database.
 If you activate Relative URLs all URLs are fine after transfer site: 
you don’t need to change base URL and you don’t need to replace all URLs in database.

### I need to change something after change domain?

No. The plugin replace URLs before WordPress send output, so you don’t need any 
configuration after activate.

### How it works?

Relative URLs replace the absolute URL with relative URL before WordPress send output.
That’s it.

### Can I request new feature?

Of course! I love to get your ideas! Please, [submit your idea](https://wordpress.org/support/plugin/wp-relative-url/)
here.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Relative URLs” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ Guglielmo Pepe ](https://profiles.wordpress.org/gpepe/)

[Translate “Relative URLs” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-relative-url)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-relative-url/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-relative-url/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-relative-url/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-relative-url/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * First release of Relative URLs

## Meta

 *  Version **1.0.0**
 *  Last updated **5 anys ago**
 *  Active installations **20+**
 *  WordPress version ** 5.2.3 or higher **
 *  Tested up to **5.7.15**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-relative-url/)
 * Tags
 * [https](https://bal.wordpress.org/plugins/tags/https/)[relative link](https://bal.wordpress.org/plugins/tags/relative-link/)
   [seo](https://bal.wordpress.org/plugins/tags/seo/)[staging](https://bal.wordpress.org/plugins/tags/staging/)
 *  [Advanced View](https://bal.wordpress.org/plugins/wp-relative-url/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-relative-url/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-relative-url/reviews/)

## Contributors

 *   [ Guglielmo Pepe ](https://profiles.wordpress.org/gpepe/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-relative-url/)