It sounds you want to do something similar as described in this article https://surpriseazwebservices.com/serve-images-from-sub-domain-in-wordpress/. You’ll need to define your upload_url_path as your private server and also update the path of your existing images by running the following query in MySQL.
UPDATE wp_posts SET post_content = REPLACE (post_content,'http://yoursite.com/wp-content/uploads/','http://img.yoursite.com/');
The steps should all be documented in the link.
Related Posts:
- Changing image URLs in media library
- Cron jobs not working in WordPress plugin in a VPS with VestCP control panel
- wp_trash_post is leaking memory
- NGiNX + PHP5-fpm + CDN Tools (plugin) [closed]
- Will Gutenberg Have a Negative Impact on Page Speed?
- WordPress backend delay by server side HTTP Request
- Is W3 Total Cache supposed to delete the local files after they are uploaded to CDN? [closed]
- Combining several CSS files into one for optimization
- Minimizing scripts & css files that plugins add
- Can the benefits of performance optimization plugins outweigh the tax of installing them on performance?
- W3 Total Cache Help – How to update DNS Zone for a static domain [closed]
- Images not appearing after applying Smush
- Optimal image size for wordpress?
- is there a way to display product gallery images via cdn
- WordPress UPDATE queries on MySQL database stuck
- Website painfully slow after migration to VPS2
- Optimized PHP & WordPress settings for speed/performance?
- Above the fold plugin error “The Proxy Cache directory contains n cache entries.”
- Render Shortcode in Lightbox Gallery
- Render Shortcode in Lightbox Gallery
- Is there a way to analyze the load time of the functions in a custom plugin?
- Should I paste CDN links in a JS file or use a Bootstrap CDN plugin?
- Plugins enqueuing jquery in head
- Errors when using CDN Sync Tool plugin
- How to make wordpress backend mobile optimized.?
- WordPress Customise
- How to load plugin static data from cloudfront
- Request initiator chain contains old CDN
- “Virtual” image in WP Media Library (external URL)
- WP behind nginx reverse proxy, home page stuck in redirect loop
- Problem with add_action
- To perform the requested action, WordPress needs to access your web > server
- Custom API plugin to execute 3rd party API to retrieve data
- Is there a way to convert shortcodes to html content?
- Proper way to handle admin-ajax calls
- How to display the featured post on the category page?
- Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite
- How to find the list of custom post type where logged in user is author
- UTF-32be error WordPress
- Loop in elementor custom widget not working
- Change text string in a plugin
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- wp-admin send 404 error
- How to create plugin/ page that reads from database
- Stop wordpress from requesting external jquery from googleapi
- get_users(); Is an Undefined Function When Used in Cron Job
- Alternate email sending service – eg: AWS SES [closed]
- 5 PHP Fatal error: Uncaught ArgumentCountError (Cannot Find)
- Disabling a plugin lead to styles being shown as plain text
- the_content() printing DOCTYPE, and tags in the middle of page
- How to deal with Slow HTTP POST (slowloris) vulnerability
- How to create author profile showcase in wordpress
- What is the purpose of WP_CONTENT_URL?
- Blog previews on custom page with more buttons
- Order posts by meta key ( Using ACF )
- Control page content visibility based on URL parameter
- Where does MonsterInsights put Google Analytics code?
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- Elementor Custom Control: How to get input value?
- Elementor page builder plugin not loading up all the way? [closed]
- How to add fields in the WordPress editor?
- How can I fetch data from another website to my wordpress website with mysql database
- Sucuri SiteCheck failing on domain with iThemes Security Pro plugin
- How to translate WP Blog (search, category etc.)?
- WordPress SVN UTF-8 issue
- How can I concatenate variables to search results title? [closed]
- Migrating WordPress – New domain entry, links broken
- Search Results Page filter by page title
- Activate and deactivate plugin automatically
- WooCommerce: after install hook
- Test my WordPress Plugin standard or not
- Theme My Login Shortcode Doesn’t Return Anything
- How retreive saved data from gravity forms in my template?
- is_rtl returns false while it should return true
- issue in wp_localize_script
- Import MS-Access data file to make the searchable page
- License validate function
- Sanitize $_GET variable when comparing
- Include Minit plugin in theme [closed]
- Plugin for an interactive image? [closed]
- Where can I save plugin data?
- echo get_option in header template
- How to display all functions (hooks, filters, or custom php) used on a page inline
- wp_enqueue_style on template_redirect level?
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Clear out old images, any advice?
- problem with sql query
- Access post title from custom meta box on title change
- How to add a new column with text fields to WooCommerce Cart List?
- How to use filter to disable adding a product to wishlist?
- Running multiple security plugins
- Save user total active time after login in wordpress [closed]
- add_query_arg not work in admin
- Add a “View all” button on WooCommerce product archives pages
- Opening a JQuery modal window on click of a button with a JQuery plugin
- I am trying to make a field show and save from quickedit screen
- Merge tags in multistep Gravity Form?
- Add to array, redirect and display
- How to track analytics with a WordPress site under the same domain as my main site?
- Can I clone plugin folder to another directory so that I don’t have to reinstall them?