Wordpress data content published on media

Alex_Roma89

Junior Member
Joined
Aug 18, 2022
Messages
125
Reaction score
56
Good morning guys, I don't know how influential it can be on an SEO level but I noticed that all the media contents that I am publishing and uploading in 2024 are actually uploaded to media but in a 2023 folder.

Why? How do you change?

Thank you!
 
Change the folder name for your media uploads to "2024" instead of "2023" to keep everything organized and up-to-date.
and sorry all the files that are loaded now in that folder will then have a 301?
 
No worries! When you change the folder name, it won't automatically create a 301 redirect for each file. You can manually set up redirects for any files affected by the folder name change to maintain their accessibility and avoid any issues.
 
No worries! When you change the folder name, it won't automatically create a 301 redirect for each file. You can manually set up redirects for any files affected by the folder name change to maintain their accessibility and avoid any issues.
and if instead I make a new 2024 folder, do you think the new files will go there? But above all at an SEO level it can be relevant as what?
 
Making a new "2024" folder is fine, but remember to move your existing files there and set up redirects from the old folder to the new one. This keeps things organized and doesn't hurt your SEO.
 
Making a new "2024" folder is fine, but remember to move your existing files there and set up redirects from the old folder to the new one. This keeps things organized and doesn't hurt your SEO.
but what if I don't want to risk it and start putting new files in there?
 
If you prefer not to risk it, you can start putting new files directly into the "2024" folder. Just make sure to organize your content properly and update any internal links or references to reflect the new location
 
WordPress keeps the original upload date in its database. You can either update the upload settings in WordPress or use a plugin like "Media File Renamer" to correct the paths.
 
If you want to force all uploads to be in 2024 or any other year, you can use this code snippet in your functions.php:

Code:
add_filter( 'upload_dir', function () {
    return _wp_upload_dir( '2024/01' );
}, 100, 0 );
 
Back
Top