Upload folder in 3.5 is under WordPress root instead of blog root
-
I’m doing a new WP site since the upload options have been removed in WP 3.5 and it isn’t working right.
I like to have my URLs short and sweet, and I like to keep my data separate from WP core files. Except for my uploads, everything works as I like it.What I want is to have my uploaded files located like this:
https://example.com/u/uploaded-file-name.jpg
What I get instead is
https://example.com/wordpress/u/uploaded-file-name.jpgWhat am I doing wrong, or how can I work around this? I really don’t want to move the WordPress core into my root directory.
Options settings:
WordPress Address (URL): https://example.com/wordpress
Site Address (URL) https://example.com
wp-config.php file settings:
define( ‘WP_CONTENT_DIR’, $_SERVER[‘DOCUMENT_ROOT’] . ‘wp-content’ );
define( ‘WP_CONTENT_URL’, ‘https://example.com/wp-content’);
define( ‘UPLOADS’, ”.’u’ );
- The topic ‘Upload folder in 3.5 is under WordPress root instead of blog root’ is closed to new replies.