跳到内容

WP Original Media Path

v3.0.0

RVOLA · 2012年12月29日 上架

Change the location for the uploads folder for WordPress

正在使用
5,000+
评分
4.9 / 5
累计下载
15 万
最近更新
2026年11月24日
38 条评价需要 WordPress 5.9+已测试到 7.2PHP 8.0+

贡献者

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums