• Hi,
    I am using the plugin, all images are going to S3
    I have to create a second website exactly the same, only URL will change. So I duplicated the website, database, and my S3 bucket.
    does the plugin will update the imge url path to find the images to the new S3?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor ianmjones

    (@ianmjones)

    Yes, and no.

    WP Offload Media Lite will recognize the new site’s local domain in content and try and filter local media URLs to their S3 version, so the URL filtering should be fine if the new site’s content was properly updated.

    If you have manually copied the bucket and want to use the new bucket on the new site, then you need to update the settings in the new site (I expect you’ve done this already as it’s obvious), but you also need to update all the “amazonS3_info” records in the postmeta table to make sure they use the new bucket too. Be care with these records as they are PHP serialized values.

    WP Offload Media has a tool for copying media from the old bucket to the new bucket when you update the settings to pick/create a new bucket, it also takes care of the site’s “amazonS3_info” records to make sure the media library items use the new bucket too.

    Thread Starter william william

    (@william-greg)

    Many Thanks.

    Yes, setting & URL into wp_option will be changed to the new URL, and the new bucket info too.

    When you say “Be care with these records as they are PHP serialized values.”

    If I run this function in my phpmyadmin, “existing url= path to my old bucket, new url=path to my new bucket, should be ok? to update all my image link

    UPDATE wp_postmeta SET meta_value = replace(meta_value,’Existing URL’,’New URL’);

    I guess if I use their tool, it will update directly my database images link of my old bucket with my new bucket link?
    Best

    question… i have a multisite and used NS cloner to make a subdomain site. everything duplicated but the media isnt being pulled from the s3 bucket.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Migration’ is closed to new replies.