Method #1 – Use A Plugin
The easiest way to change the default media uploads path is to use the Hide My WP plugin.
Once installed, this plugin will allow you to easily change the default media directory into any path you like.
For example, your current media uploads path may look like this: http://yourdomain.com/wp-content/uploads. You can customize it to http://yourdomain.com/storage using this plugin.
Keep in mind that this plugin will not physically change the uploads directory but it will use rewrites rules. You don’t have to move the images and everything goes back to what it was if you deactivate the plugin.
The free version of the plugin will not hide the wp-content/uploads directory from hackers. In case you want to add this extra feature, you will need the Hide My WP Ghost plugin. This plugin comes with support in case you need any configuration help.
Method #2 – Customize WP-Config.php
The other method is also simple, but it involves editing a core WordPress file.
First, access the root directory of your WordPress installation using the File Explorer in your web hosting CPanel or using an FTP client. Then find a file named wp-config.php and open the file to edit.
Then add the following line in the wp-config file:
define( ‘UPLOADS’, ‘wp-content/storage’ );
This will make all your media uploads go in a folder named “storage”. But it will still be inside the “wp-content” folder.
If you want the uploads to go in a direct folder, like yourdomain.com/storage, then use the following code instead:
define( ‘UPLOADS’, ’storage’ );
Also, make sure to add the following code right before the line as well:
This will automatically create a folder in the WordPress directly if it doesn’t exist. Or, you can manually create the folder on the right path using the FTP client.