Support » Fixing WordPress » Moving media to subdomain

  • OC2PS


    I have a small website hosted on shared hosting of a large global provider. The servers are not incredibly fast and are located outside my country.

    So I am looking at other ways to speed up my website – I have deployed Hyper cache, Use Google libraries and Autoptimize, and this has helped a lot.

    One of the recommendations for speeding up the site seems to be to store my images (or even all media files) in a subdomain rather than a subdirectory so that the broswer can have more concurrent connections.

    Is there an easy way to do this from the control panel for an existing website?

    I am thinking of not physically moving the files, but rather pointing the subdomain to the uploads directory. But beyond that I’m unclear – I probably need to tell WordPress where to pick images from…and not sure how to do that…

Viewing 3 replies - 1 through 3 (of 3 total)
  • OC2PS


    In case it’s helpful for anybody else, here’s what I did:

    1) Created a subdomain and pointed it to my WP uploads directory

    2) In Settings > Media, put

    Store uploads in this folder: uploads
    Full URL path to files:

    3) In my
    UPDATE wp_posts SET post_content = REPLACE(post_content,'','');

    I changed everything, and its work – images are in subdomain, show perfectly in blog…

    but all new uploads create a folder in old domain. How to change future destitation for new files?

    This is my question, too!! Does anyone have an answer? or more accurately, if you do want your new media files to go into your subdomain folder without getting an error what do you need to change in file.php (or anything) to get it to work without errors? (And for your authors as well?)

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