• Hi for the moment my url images looks like this:
    /wp-content/uploads/2017/12/bg.jpg

    I am looking for a solution for construct URL
    /wp-content/uploads/systemes/nintendo/bg.jpg
    /wp-content/uploads/systemes/sega/bg.jpg
    etc.

    Do you know a plugin to do it?
    All the plugin I know add taxonomies on the media bu does not change the generated URL

    thanks for your help and sorry for my bad english

Viewing 4 replies - 1 through 4 (of 4 total)
  • First of all you should deactivate the month/year media link organization.
    To do so go to Settings>Media in the wp-admin.
    Uncheck the option “Organize my uploads into month- and year-based folders” and hit the save button.

    Once you do this, the media will change from this pattern:
    /wp-content/uploads/2017/12/bg.jpg
    to this:
    /wp-content/uploads/bg.jpg

    In other words, WordPress will get the filename and create the url with it.

    If you want to change this behavior you can use this plugin to do the job:
    https://wordpress.org/plugins/custom-upload-dir/

    More information on how to use this plugin is available in the plugin page and in this tutorial here:
    https://www.hongkiat.com/blog/wordpress-custom-upload-dir/

    Thread Starter orphen92300

    (@orphen92300)

    Hi thanks you for your help.
    I have see the plugin too but he is not update from 2 years :(.

    if i uncheck the option “Organize my uploads into month- and year-based folders”.
    Can i create all the folder i need inside the upload folder, and call my images from this custom folder?

    There are some other options in the plugins library but this is the only one I’ve tested so far.

    And yes, once you dismark that option you’ll be able to use the media url in a more friendly format.

    The best way is modifing the uploads directory as you desire. Changing the name of the directory ‘uploads’ is recommended to improve security for your site as well.

    The best way is modifing the uploads directory as you desire. Changing the name of the directory ‘uploads’ is recommended to improve security for your site as well.

    Here is a simple and efective tutorial to make this changes.

    Good luck!

    • This reply was modified 8 years, 4 months ago by iraconira.
    • This reply was modified 8 years, 4 months ago by iraconira.
    • This reply was modified 8 years, 4 months ago by iraconira.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Change media library image url’ is closed to new replies.