0

how do we hide /wp-content/uploads/2019/03/?

I want my url of the picture to be like pensionwebsitewi.com.au/nnovating.jpg

See SS below

Thanks

enter image description here

3
  • Would it not be problematic if you had same filenames in different upload folders?
    – birgire
    Commented Mar 30, 2019 at 8:15
  • Welcome to WordPress development! As your question currently is written it's unclear to us what exactly you are trying to achieve here. Hide these URL args from where? And what have you tried so far and where exactly are you stuck?
    – leymannx
    Commented Mar 30, 2019 at 9:00
  • Hi @leymannx I apologize if my question above was not clear. What I am trying to achieve is that,.. I want to hide /wp/content/uploads/2019/03/ in the url like the screenshot above. So the url should be pensionwebsitewi.com/innovating.jpg, hide /wp/content/uploads/2019/03/. Commented Mar 31, 2019 at 12:50

2 Answers 2

0

You can try this code define('UPLOADS','')and also unclick Organize my uploads into month- and year-based folders from media settings.

2
  • Thanks for your response I will try this tomorrow. Commented Mar 31, 2019 at 12:51
  • sure, let me know :) Commented Mar 31, 2019 at 13:58
-2

you can certainly alter the wp-content/uploads and make it to appear as /uploads or media by adding the following code in your wp-config.php:

require_once(ABSPATH.’wp-settings.php’);
define( ‘UPLOADS’, ”.’media’ );
1
  • Thanks for your response I will try it tomorrow. Commented Mar 31, 2019 at 12:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.