Skip to content
Sign in
WP Original Media Path icon

WP Original Media Path

Change the location for the uploads folder for WordPress.

Not scanned yet WordPress plugin 5k installs

Install in

No install steps yet

Follow the steps on the source page.

WordPress still stores the location of the uploads folder and its URL, but has hidden these two settings since version 3.5. This plugin brings them back, with safeguards.

Install, activate, then open Settings > WP Original Media Path and enter the URL you want. The folder follows.

What for?

  • Serve your media from a subdomain, for example https://media.example.com.
  • Rename the folder, for example https://example.com/media instead of wp-content/uploads.
  • Work locally with the production images. On a local copy of a site, enter the production URL (https://www.example.com/wp-content/uploads): images show up without downloading the uploads folder.

How it works

The folder and its URL are easy to mix up: files stored in one place, looked for in another. Here you only enter the URL, and the folder follows. The settings page shows, with your own values, where the files go.

  • A URL on your site’s domain: https://example.com/media stores files in the media folder at the root of your site. Nothing else to set up.
  • Another domain or a subdomain: it must point to the right folder of this server, shown on the settings page. https://media.example.com keeps the files in wp-content/uploads: point the subdomain to that folder. With a path (https://cdn.example.com/media), the media folder is created at the root of your site: point the domain to that root.
  • An empty URL brings back the WordPress default.
  • Expert mode lets you enter the folder and the URL yourself (absolute path, protocol-relative URL…).
  • Files already uploaded are never moved.

On a multisite network, only super admins can change these settings, site by site. Enter URLs from the network root (https://example.com/media, even for https://example.com/site-b). WordPress adds /sites/ID to the folder and URL of each sub-site, so two sites never share a folder.

GitHub | Donate

Written by Joobi from the project's own listing. See the source page

mediapathsubdomainupload
24 Nov 2026
Version 3.0.0 released. Not scanned yet.

3.0.0

  • Multisite support, for super admins only.
  • Works with Composer-based installs, WordPress in its own folder and a custom content folder: nothing assumes wp-content anymore.
  • The settings page shows where an uploaded image goes: its URL and its file on the server.
  • Expert mode without JavaScript.
  • Safer URL and folder cleaning.
  • The upload fields of Settings > Media can only be changed on this page.
  • Uninstalling brings back the WordPress default.
  • Requires PHP 8.0 and WordPress 5.9.

All releases on GitHub

29 Dec 2012Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)