Title: Private Files: Handle /sites/ paths for Private Files
Author: WordPress VIP Documentation
Published: February 11, 2021
Last modified: August 5, 2025

---

 1. [Changelog](https://docs.wpvip.com/changelog/)
 2. [VIP MU plugins [Production]](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)
 3. Private Files: Handle /sites/ paths for Private Files

# Private Files: Handle /sites/ paths for Private Files

---

 11 February 2021

23:58:56 GMT+0000

 [ VIP MU plugins [Production] ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)

 [ Permalink  ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/private-files-handle-sites-paths-for-private-files/)

We’ve added a fix that properly handles files with a subsite path (e.g. `/wp-content/
uploads/sites/4/2021/01/unpublished.jpg`) with our Private Files feature. We now
strip the `sites/:id` portion of the path before forwarding the request to WordPress.

[https://github.com/Automattic/vip-go-mu-plugins/pull/1963](https://github.com/Automattic/vip-go-mu-plugins/pull/1963)