WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Tricky problem with moved wp-content folder & uploads (2 posts)

  1. alvarix
    Member
    Posted 4 years ago #

    My current directory structure:
    /wordpress (core files)
    /wp-content (my files)

    The purpose is to be able to have the core fails hooked up to the automattic svn repository, and my files in my own svn repository.

    I thought everything was working great, until I realized that uploaded images are going into /wordpress/wp-content/uploads dir, not /wp-content/uploads, as would be expected.

    Here is my wp-config settings:

    define('WP_HOME', 'http://url.com' );
    define('WP_SITEURL', 'http://url.com/wordpress');
    
    define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content' );
    define( 'WP_CONTENT_URL', 'http://url.com/wp-content' );

    obviously WordPress is using the SITEURL constant to determine where to put the uploads, instead of the WP_CONTENT* constants, but why?

    Thanks
    alvar

  2. alvarix
    Member
    Posted 4 years ago #

    I found the solution Settings > Misc > Uploads path.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.