if you are familiar with WP-CLI ( WordPress command-line interface ) you can very easily search and replace the wrong uploads// url with uploads/.
you will need to install the wp-cli.phar file in the root of your directory.
there are many tutorials online that explain how to install it for your relevant system. It is very straight forward if you have used other command line tools before
WordPress.org explains the search-replace.
Related Posts:
- Media items hogging pretty permalinks
- Make attachment pages require a base url
- Stop WordPress from reserving slugs for media items?
- Is there a user-facing interface to edit an attachment’s permalink?
- Adding File Extensions to Attachment Page Permalinks
- Dynamically create Permalinks for uploaded files?
- WordPress auto generates small medium and large of an image on upload, how can we guess their links?
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- Images in media library have suddenly disappeared
- Media/attachment urls don’t redirect with fake URL structure
- Code snippet to add filter pre_post_link to change Media URL (post_type attachment permalink/slug)
- WordPress image title attribute becomes permalink? [duplicate]
- All files in public_html, Cannot launch WordPress site via wp-admin
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup
- how to make follow?
- How can i edit all posts slug in bulk keeping WP native redirect?
- Upload User Avatar from android to WordPress using Rest API
- Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”
- Permalinks not working after Migration – AllowOverride All, htaccess set
- Display a custom slug in URL depending on user variable
- After I migrated a website for WordPress – Saved changes in wordpress settings >> permalinks. Homepage only working, links not working
- nice permalink for frontend edit page
- Include language variable in url
- 404 not found error on WordPress local host
- Edit Image/Image Details – Replace button missing
- .htaccess regex for redirect subdomain to root domain & redirect old permalinks
- Removing parent page in URL for one page
- Post archive pages bringing me to a 404 page
- Is it posible to translate a url prefix?
- how to create several url aliases for a page
- Lists Top Authors by Most Recent Posts
- Permalinks migration issue
- 404 posts error after 301 redirection of changed category / tag base
- Custom Permalinks Structure with particular word
- Remove index.php from URL
- Media Library is not loading on grid view in admin panel
- AllowOveride All causes assetts and Admin Urls to 404
- Add segment to URL in htaccess
- Permalinks, how to show them in post
- Can’t upload files 1MB+ [closed]
- Single product link in woocomerce
- Post/page without slug
- Why is wordpress permalink path wrong for single blog posts?
- Can I specify template to use with the_permalink?
- Creating complex URLs with WordPress permalink structure
- Parent pages not found with pretty permalinks
- Permalinks Won’t Work
- htaccess strip url
- Blurry Images WordPress 5.8.1
- Support Gallery link to pages
- Permalinks setting
- permalinks url with woocommerce
- Post URL not working according to permalink setting
- Image not Showing (Can see image in inspect element)
- Page permalinks are http but show up as https?
- ugly URLs appear as 404 in GWT
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- Strip category base from URL?
- Siteurl code for links
- Facebook like button disappears after changing the static permalink to dynamic one!
- WordPress keep redirecting me to random URLs
- Permalinks is not working in my wordpress setup
- Use .htaccess to redirect homepage to its permalink
- Redirect Loops Problems
- I changed rightly the permalinks but I get empty pages in the final posts
- URL issues with WordPress
- -2 generated in permalink postname [duplicate]
- Can’t find permalinks section under “Settings”?
- Problems loading stylesheet and permalinks after rebooting
- Blog url disappears
- affiliate linking from wordpress [closed]
- Make all internal links relative, or otherwise make a website accessible from multiple domains
- How to automatically convert images to WebP on WordPress?
- Not recognizing my custom templates in hierarchy
- How do I get a link to a WP page within a loop?
- Does the error “A structure tag is required when using custom permalinks.” mean my permalinks haven’t saved?
- How to make a permalink variable %year% become two digits instead of four digits?
- Uploaded images not displaying full size preview or inserting into posts
- Custom Permalink Structure For a Specific Category
- Add additional URL variations for a Post
- I am facing problem in loading and downloading Mp3 files
- Plugins, themes and other dashboard links including permalinks giving 404 error
- Different template fallback when changing permalinks
- Creating custom permalink tags in the database
- How to disable direct media file access in nginx or ubuntu for non loggedin users?
- Error: “Sorry, this content could not be embedded” when using the Embed block
- Permalinks get lost periodically
- RSS feed URL for post comment shows HTML source code of page
- domain.com?p=POSTID permalinks not working with custom post types
- Save Custom Meta Value on Media Upload
- Stymied by 500.5 error for WordPress on IIS 8 / Windows Server 2012
- WordPress Permalinks 404 Not Found
- Remove parent product category slug from product_cat url woocommerce
- WordPress 6.1.1 UTF8 Slug Limit Increase
- Inserting Media on New Post But Hides Previous Uploads for Editor/Contributor
- 301 Redirect posts to newly added categories
- UI does not show correct Slug after modified using save_post action
- How to have category/subcategory/posttitle/ permalinks?
- After migration works only first page
- Non english characters in search bar