• Even tho I’ve seen previously written threads about this subject, I decided to start a new one. Since I might experience a different problem.
    I have a shared hosting account, and I would really like to change the upload destination on 2 of my sites (both add-on domains, does it make a difference?), so the images will be hosted on a sub-domain within the domain, however since 3.5 WordPress removed the option to choose upload destination from the dashboard, it left me a little lost. After I while i stumbled upon this post: https://www.basicwp.com/custom-image-uploads-folder-wordpress/ being the only one updated to the circumstances. I have tried to copy the code and insert it at the end of my wp-config.php element from FTP software.. But whenever I upload something, it is hosted on the actual site (/wp-content)..
    What should I do?

Viewing 7 replies - 1 through 7 (of 7 total)
  • You can still change the uploads path via the site’s wp-config.php file.

    Thread Starter affiliatefrederik

    (@affiliatefrederik)

    I have tried to enter the wp-config.php file from an FTP software, however, I don’t know where in the file I should post.. I did as the link explained, however- I didn’t see any change..

    Try adding the new lines to the bottom of your wp-config.php file (just before the require_once line). And do ensure that you use a plain text editor for this work.

    Thread Starter affiliatefrederik

    (@affiliatefrederik)

    Okay, I have created a sub-domain named Media, the media folder appears in my public-html folder on my add-on domain..

    So, if I’m changing
    define( ‘UPLOADS’, ‘/blog/wp-content/uploads’ );
    to
    define( ‘UPLOADS’, ‘/public_html/media/’ );
    and paste it (one line above/before?) the require_once line

    Would it be right?

    Thread Starter affiliatefrederik

    (@affiliatefrederik)

    I have done as following now, and the file URL now says:
    https://AddOnDomain.org/public_html/media/image.png

    I think that means the images are still hosted on my add-on domain, on not on the sub-domain called media- but really, I don’t have a clue..

    That looks like your images are being stored in the media sub-folder of your add-on domain.

    Thread Starter affiliatefrederik

    (@affiliatefrederik)

    Yea I figured. But does that mean the images uploaded will be hosted on the sub-domain, and not the add-on domain, so the page loading time wont be that affected?

    If not, I have discovered the Jetpack plugin, which might do the trick for me with ‘Photon’..

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Help! Image-hosting on subdomains..’ is closed to new replies.