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
- Create tabs inside Plugins Admin Page [closed]
- Remove action from plugin on other plugin
- Allowing Two Developers Access to a Plugin on the WordPress.org Plugin Repository?
- How to build an API as a plugin
- Create custom column in post table in wordpress
- Add .html extension to custom post type taxonomies
- How to load a new template page according to a particular URL?
- Translate wordpress plugin [closed]
- Styles and Scripts, Selectively enqueue across entire site
- Exclude custom post_type in sitemap generation?
- Removing WordPress Plugin Menu Item for a specific user
- The plugin generated x characters of unexpected output, $wpdb not defined
- How to add an attribute to the body tag with a plugin?
- Override the core function locate_template
- Use oEmbed in List Items
- Trigger renewal order emails for WooCommerce subscriptions for testing
- Set user ID at time of wp_create_user
- WordPress Ajax Callback
- Regex to Remove File Extension
- Collapse content [closed]
- Can’t add custom Taxonomy to Custom Post Type
- add_menu_page does not seem to work in a class
- Form isn’t inserting data into database with ajax plugin
- WordPress CodeHighlighter
- How would I go about creating a user ranked post popularity page?
- All of my custom posttypes are 404’ing
- How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?
- How can I change the plugin update server for specific plugins?
- How to create an input field, and base the output on spreadsheet data? [closed]
- WordPress plugin subscribe2 not looking the same as before migration
- Admin style for just one plugin in dashboard
- Multiple instance of data in plugin custom database table on plugin activation
- Customised plugin failed to install and activate
- Trying to create a table/list of my EventBrite course listings [closed]
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- WP_Http response throws “Cannot use object of type WP_Error as array”
- XML parser plugin
- How to get all posts belongs to a user between a certain date
- Using Variable in WordPress Translate Functions
- Add item to the woocommerce dashboard menu from a plugin
- Display my plugins content based on a pages post_id
- Make get_permalink() work outside the Loop using filters
- How can I get someone to checkout as soon as they add a product to cart?
- Can you echo PHP code from a variable?
- Pluging with content for a specific page or post
- WordPress Plugin- How to Insert Html&JS code in specific Page and specific Div
- Restrict posts to customers with complete WooCommerce orders only
- Upload Image with a file URL and show dynamically on Frontend
- Use get_pages() before another plugin modifies it
- How can i solve php upgrade problem
- Submitting form to PHP
- How use get_plugin_updates() function?
- how override a define
- WordPress plugin blog creation
- Modifying server’s response to API endpoint
- Restoring a WordPress site
- Molpay recurring payment in WordPress
- How To Edit User Profile In Front End?
- Is it possible to get a shortcode generated by a plugin, then, using a function, create a new post using that shortcode?
- Add predefined values to custom post plugin
- How to copy data from user profile page (profile.php) to theme customizer
- Custom shortcode with dynamic rewrite
- Problem with wp_editor
- Add plugin by SVN. Current version problem
- Can’t upgrade themes or plugins after upgrading WordPress to 4.4
- Eliminate Render blocking CSS?
- User register hook can’t access form request
- Continuous jQuery Slider / Carousel Plugin with linkable slides [for WooCommerce]
- How can i add a random redirect button in wordpress? [closed]
- Outputting custom field query from a plugin to the website header
- WP Donation Form with custom payment API
- admin_enqueue_scripts using hook_suffix vs GET page