Title: WP Original Media Path
Author: RVOLA
Published: <strong>December 29, 2012</strong>
Last modified: March 16, 2026

---

Search plugins

![](https://ps.w.org/wp-original-media-path/assets/banner-772x250.png?rev=1662270)

![](https://ps.w.org/wp-original-media-path/assets/icon-256x256.png?rev=1659360)

# WP Original Media Path

 By [RVOLA](https://profiles.wordpress.org/rvola/)

[Download](https://downloads.wordpress.org/plugin/wp-original-media-path.2.4.2.zip)

 * [Details](https://wordpress.org/plugins/wp-original-media-path/#description)
 * [Reviews](https://wordpress.org/plugins/wp-original-media-path/#reviews)
 *  [Installation](https://wordpress.org/plugins/wp-original-media-path/#installation)
 * [Development](https://wordpress.org/plugins/wp-original-media-path/#developers)

 [Support](https://wordpress.org/support/plugin/wp-original-media-path/)

## Description

WordPress has changed the media page, removing the two fields to define the location
and the sub-field of media.
 There exists a constant wp-config.php, but it does 
not include sub-domains. Once activated, the plugin will add two values ​​in the
database, you modify later. The plugin is not retroactive for images already uploaded.
Follow the [installation instructions](https://wordpress.org/plugins/wp-original-media-path/installation)
to migrate your old images.

 * **This extension is not compatible with WordPress multisite.**
 * **Thank you to try to find the solution by yourself or on the forum.**
 * **The author of the plugin is no after-sales service.**
 * **Most of the issues have already been addressed.**

[**GitHub**](https://github.com/rvola/wp-original-media-path) | [**Donate**](https://www.paypal.me/rvola)

## Installation

First of all, it is important to back up your website before using this extension.
I can not be held liable if you lose content. Thank you.

Here is the installation. Normally, it’s pretty simple. Just enter the URL you want
for your uploads directory. Be careful if you use a domain other than your domain,
pointing your domains (DNS) to the desired folder.

For example, if I want to have `http://media.domain.com` as my URL for my uploads
folder, I need to point DNS `media.domain.com` to the root of my WordPress site.

Another example: `http://other-domain.com/images`. I have to point my domain to 
the `images` folder on my WordPress server.

The easiest way to understand how the extension works and only use your current 
WordPress domain at first. By default, the URL of the uploads folder of WordPress
is `http://domain.com/wp-content/uploads`. Try for example to put this in the field:`
http://domain.com/media`, then send an image by the usual WordPress media page and
normally by magic, WordPress will create the media folder at the root of your WordPress
And upload your image to your server.

If your website is blank, you do not have anything else to do. If your site already
has images for a while, read on.

Please note that the URL change is never retroactive. This means that if you change
the URL of the media folder, the images called in your article, etc. will still 
call the old URL. Similarly, templates and extensions that use dynamic functions
will call the new URL while the items in the uploads folder will still be in the
old folder.

The easiest if you want to migrate the URL is to do it in 3 simple steps:

#### Step 1

Change the field with the new URL.

#### Step 2

Move the contents of your old uploads folder to the location of the new URL. For
example, my old folder URL is `http://domain.com/wp-content/uploads` and I now want
the images to be `http://domain.com/media`; After changing the field in the options
like this: `http://domain.com/media`, I move the contents of the `http://domain.
com/wp-content/uploads` folder to the `http://domain.com/media`, so I allow dynamic
functions to continue to find the media files in your new folder.

#### Step 3

Now we need to change, the old image calls `http://domain.com/wp-content/uploads/
2016/05/test.jpg` for example that is in the content of WordPress articles. First
you have to back up your database, because the operation can be damaging and I can
not be held responsible. It is necessary to modify in SQL by a simple Search> Replace.

There are extensions on WordPress that do the job very well, I think, especially
at [Search & Replace](https://wordpress.org/plugins/search-and-replace/). Just search
for `http://domain.com/wp-content/uploads` and replace it with `http://domain.com/
media` which matches the field you entered in step 1.

Normally if you scrupulously follow these steps, you are able to be able to simply
change the URL of your uploads folder.

Good continuation and think about adding a review.

## FAQ

### The plugin does it work with a real CDN?

Unfortunately not. Because WordPress is able to handle the file uploads directly.

This plugin is only used to mount a mirror subdomains on WordPress installation 
or change the location of file uploads.

### I just set the plugin, but the images are not displayed

 1. Check that the path is correct specify.
 2. Check that the file was created on the server with the chmod 777 or 755.

### My site is broken

 1. Do not panic!
 2. Refer to the help for configuring media fields.
 3. You can always follow the uninstallation procedure if you want to reverse.

### I want to make suggestions

We’re glad you want to help us improve the WP Original Media Path!
 The GIT repository
is available here [https://github.com/rvola/wp-original-media-path](https://github.com/rvola/wp-original-media-path)

## Reviews

![](https://secure.gravatar.com/avatar/92320e9579a9c2aa88441c97f61adee4cc2d1d432249b68da036a6e71170700f?
s=60&d=retro&r=g)

### 󠀁[Very nice plugin-wish it worked with multisite.](https://wordpress.org/support/topic/very-nice-plugin-wish-it-worked-with-multisite/)󠁿

 [nerko69](https://profiles.wordpress.org/nerko69/) April 19, 2022 1 reply

Can you guys make a multisite version as well? Thanks

![](https://secure.gravatar.com/avatar/f0dcfc0aafb8cc7fe0b5acb4a3588184556aeae98dda817792ff419111c928ae?
s=60&d=retro&r=g)

### 󠀁[Useful plugin with proper configuration](https://wordpress.org/support/topic/useful-plugin-with-proper-configuration/)󠁿

 [n381](https://profiles.wordpress.org/n381/) November 18, 2021 1 reply

Hello, thank you Author for providing this WP plugin. Still useful even with HTTP2
as standard as subdomains serving, extends the browsers limitations for concurrent
connections at “6 connections per host name”. To add for WP users information as
some are having problem with settings, particularly when subdomain directory is 
set outside the WP install directory – setting is not working during inaccurate 
paths, so to solve it, settings enabled in the “Expert mode” field should be made
relative from the WP directory ie. “../../cdmysubdomaindir/uploadfiles”. Thank you.

![](https://secure.gravatar.com/avatar/1a04623f9d39b3ffae6d440a04d593df14b0260631dac46d5518d6730b546089?
s=60&d=retro&r=g)

### 󠀁[Gets the job done](https://wordpress.org/support/topic/gets-the-job-done-141/)󠁿

 [towerss](https://profiles.wordpress.org/towerss/) August 29, 2020 1 reply

Super easy to use and does exactly what it is supposed to do. Just backup your site
berofe using, as always, just in case.

![](https://secure.gravatar.com/avatar/28172336622bcaa76b894842aecc5c043e62beaa31d973aa7444ee81b364502e?
s=60&d=retro&r=g)

### 󠀁[Super easy](https://wordpress.org/support/topic/super-easy-178/)󠁿

 [Aldoseri](https://profiles.wordpress.org/aldoseri/) March 16, 2020 2 replies

This plugin is super easy and it does the job perfectly.

![](https://secure.gravatar.com/avatar/5c02a1a2b75513c0e1da79669fbeaa8ca057ffc5727bc4d72e508b9cd392a64f?
s=60&d=retro&r=g)

### 󠀁[Waste of time](https://wordpress.org/support/topic/waste-of-time-183/)󠁿

 [சூசை பிரகாசம் அ](https://profiles.wordpress.org/hosuronline/) December 31, 2018
3 replies

Its simple waste of time, as the plugin only allows to upload images in the same
server and not on any remote one.

![](https://secure.gravatar.com/avatar/9dbc1c39731e8ae007c77250559c71176467e29b8a618088bd87470f56c028cc?
s=60&d=retro&r=g)

### 󠀁[excellent](https://wordpress.org/support/topic/excellent-5465/)󠁿

 [daniel](https://profiles.wordpress.org/tj0ckis/) October 16, 2017 1 reply

very helpful plugin!

 [ Read all 38 reviews ](https://wordpress.org/support/plugin/wp-original-media-path/reviews/)

## Contributors & Developers

“WP Original Media Path” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ RVOLA ](https://profiles.wordpress.org/rvola/)

“WP Original Media Path” has been translated into 6 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wp-original-media-path/contributors)
for their contributions.

[Translate “WP Original Media Path” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-original-media-path)

### Interested in development?

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

## Changelog

#### 2.4.2 | 2023-03-30

 * Check WP 6.2
 * Revert “Improve force to clean input regex”

#### 2.4.1 | 2023-01-13

 * Placeholder minor modification
 * Improve force to clean input regex
 * Input value improvement (thanks Rio Darmawan)

#### 2.4.0 | 2018-10-22

 * CHECK / End of support PHP 5.6
 * ✓ Check compatbility WP 5.0
 * If Expert mode, don’t modify lowercase, etc

#### 2.3.0 | 2017-11-08

 * NEW / possibility in “Expert” mode to modify the url scheme for the site

#### 2.2.0 | 2017-10-31

 * Minor spaces and clean
 * Refactor activation methode with new setter
 * Refactor method set value
 * Refactor slug link admin options
 * Refactor Pear conventions checkMultisite
 * Refactor link plugin meta
 * Rename method linkSidebar > addMenu
 * Rename method linkPluginPage > pluginLinkPage
 * Rename method loadTextDomain > loadLanguages
 * Refactor Fields
 * New namespace for class
 * New requirement version (PHP, WP)
 * Clean licence in php file
 * REFACTOR / merge method assets (script, style)
 * REFACTOR / change name singleton method
 * Link page options printf()
 * MOVE / page options in folder

#### 2.1.1 | 2017-05-22

 * MINOR / Explanatory text
 * FIX / Load correctly gettext
 * FIX / Link donate + I18n
 * MINOR / changelog for WordPress repository
 * Bump version WordPress Repository

#### 2.1.0 | 2017-05-21

 * NEW / Donate link
 * MINOR / ajustement readme
 * UPDATED / sanitize_url if empty field
 * NEW / Expert mode with path custom
 * UPDATED / function dynamic field render
 * NEW / style in css file
 * NEW / constante Version
 * NEW / constante SLUG

#### 2.0.0 | 2017-05-17

 * MINOR / order button options
 * NEW / Check multisite and kick out
 * MINOR / Pear conventions
 * MINOR / Add details for field
 * NEW / Style for hide field in page media
 * NEW / Sanitize field url
 * UPDATED / activate() with new function `clean_slash`& `set_uploadPath`
 * NEW / set_uploadPath
 * NEW / clean_slash
 * REMOVE / upload_path field

#### 1.6.1 | 2016-08-01

 * FIX / Install fields

#### 1.6.0 | 2016-07-21

 * NEW / Changelog GitHub
 * UPDATED / readme GitHub
 * MINOR / space
 * MINOR / Update variable name
 * UPDATED / i18n
 * UPDATED / const NAME
 * UPDATED / Pear conventions
 * UPDATED / Activate function
 * UPDATED / Class become final class
 * MINOR / deleted comments
 * NEW / Licence GPL V3
 * Readme Markdown
 * Update Readme

#### 1.5.1 | 2015-11-19

 * Check WordPress 4.4
 * Update readme
 * New File POT
 * Github link

#### 1.5.0 | 2015-08-28

 * Settings API
 * uninstall.php file
 * recode

#### 1.4.1 | 2014-09-22

 * German Translation by [Dr. Hajo Brandenburg – Feuerwehrmuseum](http://www.feuerwehrmuseum-sh.de)

#### 1.4.0 | 2014-09-03

 * Correct classname responsive
 * Check compatibility WordPress 4.0
 * Update readme
 * Update assets Repository
 * Update and clean files PO & MO

#### 1.3.0 | 2013-07-18

 * Page options
 * Possibility to disable the plugin settings without deleting
 * Established translations
 * Update Installation and FAQ

#### 1.2.0 | 2013-05-01

 * Bug link setting
 * uninstalling the plugin with the deactivation
 * Update FAQ

#### 1.1.0 | 2013-03-29

 * FAQ
 * Auto fill fields

#### 1.0.1. | 2013-01-06

 * Contributors list
 * Text fields

#### 1.0.0. | 2012-12-28

 * Launch Plugin

## Meta

 *  Version **2.4.2**
 *  Last updated **2 months ago**
 *  Active installations **6,000+**
 *  WordPress version ** 3.5 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/wp-original-media-path/),
   [Dutch](https://nl.wordpress.org/plugins/wp-original-media-path/), [English (US)](https://wordpress.org/plugins/wp-original-media-path/),
   [French (Belgium)](https://fr-be.wordpress.org/plugins/wp-original-media-path/),
   [French (France)](https://fr.wordpress.org/plugins/wp-original-media-path/), 
   [German](https://de.wordpress.org/plugins/wp-original-media-path/), and [Spanish (Chile)](https://cl.wordpress.org/plugins/wp-original-media-path/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wp-original-media-path)
 * Tags
 * [media](https://wordpress.org/plugins/tags/media/)[path](https://wordpress.org/plugins/tags/path/)
   [subdomain](https://wordpress.org/plugins/tags/subdomain/)[upload](https://wordpress.org/plugins/tags/upload/)
 *  [Advanced View](https://wordpress.org/plugins/wp-original-media-path/advanced/)

## Ratings

 4.9 out of 5 stars.

 *  [  37 5-star reviews     ](https://wordpress.org/support/plugin/wp-original-media-path/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wp-original-media-path/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wp-original-media-path/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wp-original-media-path/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/wp-original-media-path/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/wp-original-media-path/reviews/)

## Contributors

 *   [ RVOLA ](https://profiles.wordpress.org/rvola/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-original-media-path/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/rvola)