In this example, we will change WordPress default upload folder from “wp-content/uploads” to “www” folder.
- Go to WordPress root directory.
- Locate and edit wp-config.php file.
- Add in the following code (feel free to change ‘www‘ to your desired media path):
define('UPLOADS','www');
- Save your changes.
WordPress also allows us to disable media month and years folder structure. Go to Settings > Media, unchecked “Organize my uploads into month- and year-based folders” and click on the “Save Changes” button.