Thursday, February 18, 2016

wordpress-Change upload directory in worpress

let's say you upload a picture. After you upload it, you can view the file at something like:
example.org/wp-content/uploads/2014/12/picture.png
And let's say you now change the uploads folder location via:
Now you need to change in wp-config.php
define('UPLOADS', 'wp-content/media');
This will give you a URL like this:
example.org/wp-content/media/2014/12/picture.png
Hope this will help!

No comments :

Post a Comment