• Hi

    I have an urgent problem in that I need to move all of my wordpress /wp-content/uploads to a cdn, I want to do this to amazon cdn/ cloudfront as I already have it. but the question is how do i do this so as I can then delete all the wp-content/upload/ folders and files and everything will work. Do I have to use amazon origin pull/ mirror or origin push?

    i need to do this as after a year godaddy have just told me i’m over the limits and its all the pictures etc in the upload files thats doing it and they have given me 2 days to sort it out (very helpfully of godaddy)

    please tell me asap

    https://wordpress.org/plugins/w3-total-cache/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Not sure about deleting all the local files – as I keep mine as backup.

    I use S3:

    Admin->CDN->Host Attachment. Make sure that is checked and click on ‘Upload Attachment’. (Assuming you have the CDN credentials set in the settings)

    And the site does not reference any local files – so in theory, if I delete my local files, it should work.

    There is also ‘Importing attachments into the Media Library’ on the same page, if you are doing it for the first time.

    Thread Starter spormeon

    (@spormeon)

    ok, i’ve done the host attachment, problem is i can’t keep the local files, I want to but godaddy gonna cut me off if i do as this is apparently on a “unlimited” account a violation of some “excessive inodecount”

    so need to offload as much as poss to cdn, delete local files, keeps me running?

    >>delete local files, keeps me running?

    Have not looked at the code – but it is probably using the local store to keep the CDN in sync. So if it sees the local files is gone – it may delete the CDN copy.
    [This is a theory – need to dig into code]

    One suggestion is to look for a plugin that manages attachments and bypass WTC.

    FYI:
    http://wordpress.org/plugins/amazon-s3-and-cloudfront/

    “There is an option to automatically remove the files from your server once they are copied to S3 however.”

    Thread Starter spormeon

    (@spormeon)

    thanks but this doesn’t work for me
    “If you’re adding this plugin to a site that’s been around for a while, your existing media files will not be copied or served from S3. Only newly uploaded files will be copied and served from S3.”

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘wp-content/uploads to amazon cdn’ is closed to new replies.