Skip to content
Change the location for the uploads folder for WordPress
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets NEW / possibility in "Expert" mode to modify the url scheme for the … Nov 8, 2017
languages Bump 2.2.0 Oct 31, 2017
pages Link page options printf() Oct 31, 2017
.gitignore gitignore svn Jul 21, 2016 Bump 2.4.0 Oct 22, 2018
LICENSE.txt NEW / Licence GPL V3 Jul 21, 2016 MINOR / PHP version readme Oct 22, 2018
readme.txt Bump 2.4.0 Oct 22, 2018
uninstall.php NEW / Expert mode with path custom May 21, 2017
wp_original_media_path.php Bump 2.4.0 Oct 22, 2018

WP Original Media Path


Change the location for the uploads folder for WordPress


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 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.


  • PHP minimal: 7.0
  • WordPress minimal: 3.5


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 as my URL for my uploads folder, I need to point DNS to the root of my WordPress site. Another example: 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 Try for example to put this in the field:, 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 and I now want the images to be; After changing the field in the options like this:, I move the contents of the folder to the, 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 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. Just search for and replace it with 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.

Frequently Asked Questions

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.


You can’t perform that action at this time.