Migrating Wordpress Uploads To S3 Object Storage

I currently migrate my wordpress media to s3 bucket.

Does any one know of a way to redirect all the existing image urls to the s3 bucket instead if we manually copy the files over? Could this be done with a htaccess in the uploads folder or config from wp-config?

I've tried using the following config but it doesn't work

define('UPLOADS', 'http://s3_url/wp_content/uploads');

Thanks before.

Topic cloud uploads media migration Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.