• Resolved rcobbold

    (@rcobbold)


    Afternoon,

    I’ve been playing with WordPress and trying to move the uploads folder and have stumbled upon an issue. I read some guides on the internet and they more or less said the same thing so at the VERY BOTTOM of my wp-config.php I added the following:

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    
    define('UPLOADS', 'media');

    I then created a media folder in the root directory and changed the permissions to 777 as the guides mentioned. The files now upload here without issue however when I do upload files the URL inside of wordpress is still adding it like this and causes an issue which breaks them.

    https://domain.co.uk/wp-content/uploads//home/neco/public_html/media/dark-logo.png

    The above is adding in /wp-content/uploads//home/neco/public_html/ when it should not do that. Have I messed up on the define I mentioned above or is there more to do?

    I have altered the domain name and the neco is the cPanel name. I’m also using SSL if it is causing any issues.

    Thanks,
    Rob

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