Hi @samysalahgad ,
Apologies for the confusion. Not really sure what you are trying to do here.
By default WordPress doesn’t save the full URL of an image in the postmeta table. In the Media Library it uses the site’s URL, and then attaches the uploads directory setting, then the _wp_attached_file meta value, to get the full image URL.
If you’re using a plugin like WP Offload Media, then our plugin rewrites those URLs dynamically to the S3 version of the URL. It doesn’t make any changes to the database.
It is not recommended to change the image data (_wp_attached_file) directly on the database, for better compatibility with other plugins. That’s why WP Offload Media doesn’t change anything in the database but rewrites them dynamically.
This also means that, if your Media Library records are stored correctly in the postmeta table, they won’t have the full URLs, and Better Search Replace won’t be able to replace them.
If you want to learn more how WP Offload Media rewrites URLs dynamically, you may read our developer’s guide below:
https://deliciousbrains.com/wp-offload-media/doc/developer-guide/#local-to-provider-hooks
Let us know if you have any other questions.