
WP Original Media Path
v3.0.0RVOLA · 2012年12月29日 上架
Change the location for the uploads folder for WordPress
- 正在使用
- 5,000+
- 评分
- 4.9 / 5
- 累计下载
- 15 万
- 最近更新
- 2026年11月24日
贡献者
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/mediainstead ofwp-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/mediastores files in themediafolder 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.comkeeps the files inwp-content/uploads: point the subdomain to that folder. With a path (https://cdn.example.com/media), themediafolder 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.