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
- What WordPress API function lists active/inactive plugins?
- Handling jQuery Component Collision
- why plugins are loaded prior to pluggables
- How to override normal WordPress search in Buddypress? [closed]
- Jetpack plugin (ShareDaddy): Prevent share buttons showing on custom post types?
- Woocommerce exclude specific category products from related products [closed]
- Seriously stuck with some custom meta box/plugin stuff
- explanation for activate_plugin function in wordpress core
- How many security plugins are too many? [closed]
- Get product attribute for Simple product in WooCommerce
- I need to add a custom “cover” to every new post — plugin or custom setup?
- Suspicious google tag manager
- How can I process xml file on upload?
- Permission Check for REST API Endpoint Runs Twice?
- After activating a Plugin, /wp-admin is no longer accessible
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?
- How to import my YouTube channel into WordPress?
- How get a value from a plugin into another plugin through action/filter
- Exclude post by custom meta with pre_get_posts
- CSV file generation failing
- Error: Cannot find module ‘../build/Debug/nodegit.node’ [closed]
- Get Time Taken By Each Action Hook in WordPress
- Buddypress – Add the post_id in the bp_activity_add function
- Automatic switch to backup database on fail
- How do I write an inventory list plugin that creates dynamic details pages?
- Save values from a pre_post_update
- How to let user store a file in plugin directory but not have it get deleted on update?
- How to grab facebook page feed?
- Finding the screen id of a page generated with add_menu_page
- How to translate wordpress error message
- Override a Plugin Function
- wp_localize_script not passing the data
- More gentle way to hook WordPress custom url
- Adding Gallery to Footer of Homepage
- How to enable WPML in BuddyPress Multilingual Plugin in a single website? [closed]
- Saving custom data via ajax with nonces
- Minification Plugins break my website
- plugin for emails to prevent spam but also let mailto working?
- What snippet do I need to type to show my ACF field show up on my theme?
- Unable to locate inline CSS causing parts of page to be blank
- Xamp installed local wordpress not allowing to publish or install plugin
- Elementor pro page editing gives error There has been a critical error on this website. Please check your site admin email inbox for instructions
- Correct way to expand custom WordPress plugin functions
- FPDF for creating pdf diplomas
- Upload WordPress Plugin from ZIP Broken – Returns Symbols Squares & question marks
- is it possible to fetch data from a remote api while admin is writing a new post?
- How wordpress handle urls present in db for external wp-content directory
- Disable plugin in spesific page without plugin
- Extending on a WordPress Plugin
- wordpress plugin translation not working
- Multi-site error wordpress after migration
- Enqueued admin javascript for plugin settings page not executing
- Can plugin automatically update if i hide the update notification?
- Modify php code from plugin
- change output location of plugin function using a custom hook
- How to use scripts when header/footer are stripped out
- Apache rewrite rules and wordpress problem
- Active Plugins for current blog in WP Multisite Network? [duplicate]
- Why links are not linked if edited comment?
- Using one-click plugin upgrade feature securely on suexec server
- Apostrophes replaced by '
- WordPress Plugin Reviewer
- Is there a visual editor specifically for page snippets/sections?
- Plugin to display text before a post
- Why does wordpress keep asking for ftp login info when I go to install a plugin [duplicate]
- Cart shortcode is not working in cart66 WordPress plugin
- Fatal error in wordpress
- how to add meta for order in woocommerce
- Increased max_upload_filesize, but still can’t upload plugin [closed]
- adding firstname and lastname on registration
- Plugin question, How to insert a colon in a value box
- Change homepage logo for each site multisite setup