Honestly, the best way to do this is to run some queries on the database using regex to search and replace, after the database has been backed up of course.
Before learning more about SQL, I used this: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/, which should work for you in this situation. You download the file, upload it to your public facing directory, and access the URL. Then you just use Regex to find the type of URLs you’re looking for, and then specify the replacement. Run it, and you’ll be good to go.
Don’t forget to delete it after using it though, if you do use it!
Related Posts:
- how to replace hostnames on certain external links?
- Why links are not linked if edited comment?
- HTML link within my plugin settings page
- Preserve custom URL parameter on more pages
- How to generate expiring URL?
- Which method is best to enqueue scripts
- Open external links in a new window
- Issues creating a tinyMCE plugin that creates a custom link
- A plugin for having rel=”nofollow” in posts?
- How to attach Links into page/post or custom post type?
- Woocommerce different URL for every table placed in the restaurant
- Author Specific URL’s in WordPress
- How to set all external links to a certain domain to “nofollow”?
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- Conditional Display of Links in Widgets
- How to add nofollow on all external links without plugin?
- How do I customize my WordPress shortlink structure in link-template.php without a plugin?
- I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
- How can I pass a variable to a page with a SEF url?
- locate_template with multiple categories?
- custom taxonomy and custom post type url conflict
- Find the URL of the current plugin directory
- Rewrite url without flushing the database?
- Custom page slug without creating a WP page
- Best way to hook a custom url?
- Changed permalink structure. Need help with redirecting old posts
- What is an arbitrary URL?
- How can I change a plugin’s URL?
- SEO smart plugin not working for words ending with ä, ö, å
- Build a list of partners with Link, Logo and text
- WP Plugin for onpage link suggestions [closed]
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- WordPress shows error related to allow_url_fopen
- Ability to automatically redirect a URL
- Subdomains with almost the same content
- URL parameters causing 404 on home page, but nowhere else
- change content based on url per plugin
- How to add subcategories to the blogroll?
- Redirect to another page using contact form 7? [closed]
- In Woocommerce theme need to add custom external link [closed]
- Any idea how to get something like this to work? [closed]
- correctness of URL
- Inserting shortcode in href – any ideas or workarounds?
- track all external links on blog via username
- How to pass a query string to another page on the same site?
- How to rewrite URL and get the values?
- Scrape a webpage for image and add it to post
- How to access the WordPress DB from a plugin file
- Replace video url with video player
- How to auto strip hyperlinks & images in wordpress post
- Linked pages from plugin on front can’t see $wpdb
- Offer Download Links for Product Images
- Why the internal link get converted into a comment?
- How to hide particular plain text with link from different subscribers
- Redirect unloggedin users
- Change language on website and change currency with url query
- Add a parameter at the end of the url and prettify
- insert og image link in wordpress post
- WP search box on page not finding .PDF files
- How to generate expiring URL of the page?
- how to include my homepage and scc in to a plugin
- .com creates automated link in post
- How to allow URL with filename & extension in wordpress?
- Scroll to ID broken in main menu
- Having multiple URL structure for wordpress blog
- Some resources of my website are pointing to www.mysite.com/dev/ and trying to get rid of that append has been a headache
- How do you remove question mark in URL in get method?
- WordPress drop domain alias
- URL Case Sensitivity (Unbounce Landing Pages)
- Automatic set a featured image from the first image’s url (or tag) in the article
- User Affiliate Token Generator?
- Infinite 301 redirects after definitions in “Redirections” plugin?
- Keeping original URL
- How to link file or image from wordpress plugin dir to theme by using themes function.php, is it possible?
- Using permalinks with parameters
- Creating custom URL for async content
- URL RewriteRule doesn’t work when using WP Database Participants in my WordPress website
- How To Rewrite WordPress Pages URL Only?
- How to Set Limit with WordPress Get Bookmarks Shortcode
- How can I process all requests for a given directory in a URL with my plugin?
- Unwanted Links and Spam WordPress Pages and Posts
- Display Plugin information on specific url
- Can I have a link within a WP UI Spoiler
- How to use Link Manager
- How do I add php to all links automatically?
- How to remove links generated by SEO-smart-links?
- Thumbnails and Lightbox
- How to get the real address from a url (permalink)
- Remove base from the custom post type URL [duplicate]
- WP Job Manger change jobs url (NOT slug)
- How to block external download link access if visitor not referred from WP?
- map urls to plugins
- Simple Amazon Affiliate Plugin [closed]
- How to make temporary expiring link for a downloadable file
- WordPress Customise
- Fetching Video From YouTube Automatically [closed]
- Continuous jQuery Slider / Carousel Plugin with linkable slides [for WooCommerce]
- How to create a custom wordpress plugin for a specific functionality?
- How to change all the urls of the WordPress site?
- claim a permalink and all sublinks in plugin