• Hello everyone,
    I am at my first experience with wordpress and I don’t have any experience with it.

    I am involved into a project at school that involves printing in 3D some static QR Codes that redirects to simple PDF files into my wordpress page.

    In the WordPress Medias I putted some pdf files.
    Every of this files have an URL, like this example:

    https://nameoftheblog/…/files/2018/07/LP_01.pdf

    The problem is that WordPress generate an URL with the date in it (2018/07).

    This lead to a problem: If I update the PDF file with the same name one month or year later, the URL will not be the same anymore and the QR code will not redirect to that file anymore.

    I need an URL that is FIXED and not time dependant.I want to have the possibility to update my pdf files without changing their URL.

    I was looking for something like this:

    https://nameoftheblog/…/files/LP_01.pdf

    Is it possible to erase the date from the generation of the URL of new medias?

    I altro tried to look in other blog pages and i’ve seen that in Settings –> Media
    some of them showed that there is an option called ‘Organize my files into month- and year-based folders’

    The problem is that there is no such option on my media settings.

    I already know that my website is self hosted and my web host should be Switch.

    I Thank you very much in advance for your help and avaiability.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey,

    I think that all you have to do is uncheck the Organize my uploads into month- and year-based folders option from Dashboard → Settings → Media area. Once you do this, all of your uploads will be added to wp-content/upload folder. Could you give this a try, please?

    Thread Starter pascalbozzini

    (@pascalbozzini)

    Maybe I wasn’t clear in the first message.

    As i wrote in Dashboard Settings Media I do not have Organize my uploads into month- and year-based folders .
    I can only modify the size of my images, nothing more.

    Is that beacuse of the version I am using (Version 4.9.7)?

    Thanks for the answer anyway

    Hi,

    Could you tell me if you’re using a multisite, please? It seems that this option should not appear when using multisite.

    Thread Starter pascalbozzini

    (@pascalbozzini)

    I guess so, as I can create a new website from the Dashboard –> My Sites.

    In this case, there’s a different way to change the folder structure. Please check the Disable for WP multi-site on the following article: https://www.matrudev.com/post/disable-wordpress-month-year-upload/ and tell me if this is the answer you were looking for.

    Dear Radu

    if i uncheck Dashboard → Settings → Media I do not have Organize my uploads into month- and year-based folders – what will happen with the files i uploaded before?

    I rememeber when i did similar thing with post names – wp changes all my page links which create for me a lot of problems as ALL my links became invalid )))))

    pls advise
    thanks

    Hey,

    The existing media files will stay the same and the new files you add will no longer be structured in year-month folder structure. I just checked this on my WordPress installation to make sure that I’m right about it ??

    Regards,
    Radu

    Oh, thanks a lot for doing that, man! ))
    appreciate that

    here is procedure to disable in WordPress Multi-sites:

    Login to Dashboard
    Go to Network Admin
    Go to Sites tab
    Click on Edit link for particular site.
    Toggle to 4 tab under it – Settings
    Look for “Uploads Use Yearmonth Folders“
    Change the value in text field from 1 to 0
    Save the settings.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove Date information in Media URL’ is closed to new replies.