Support » Fixing WordPress » Remove Date information in Media URL

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You know you can uncheck the “Organize my uploads…” setting under “Media”, right? Of course that only affects future uploads and does not help existing media. URLs like https://nilsdecker.com/somethingrandom.jpg aren’t really feasible though it’s technically possible by redefining the WP uploads location. I recommend settling for media in /wp-content/uploads/ like it’s meant to be.

    Even changing to /uploads/ with no date path isn’t easy for the non-technical. It’d be tedious, but you could manually move (via FTP) the files out of the dated sub-folders and into /uploads/ proper. You’d then need .htaccess rewrite rules to strip out any date data from media paths. Even better would be to update all media paths in existing posts and pages so rewrites are not required. A plugin like Better Search and Replace will help you find such paths and update them, but it’ll be tedious to find all the individual dates.

    A regexp search and replace would be much less tedious, but far more technical. Regexp searches are only supported in the plugin’s Pro version. The plugin is based on the interconnect/it tool which does support regexp in their free download, but if you’re not technically inclined it’s not a good option. I mention it more for anyone else following along who may be more technically inclined.

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