WordPress.org

Ready to get started?Download WordPress

Forums

Help! Image-hosting on subdomains.. (8 posts)

  1. affiliatefrederik
    Member
    Posted 1 year ago #

    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: http://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?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    You can still change the uploads path via the site's wp-config.php file.

  3. affiliatefrederik
    Member
    Posted 1 year ago #

    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..

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  5. affiliatefrederik
    Member
    Posted 1 year ago #

    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?

  6. affiliatefrederik
    Member
    Posted 1 year ago #

    I have done as following now, and the file URL now says:
    http://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..

  7. esmi
    Forum Moderator
    Posted 1 year ago #

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

  8. affiliatefrederik
    Member
    Posted 1 year ago #

    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'..

Topic Closed

This topic has been closed to new replies.

About this Topic